Click here to Skip to main content
15,892,298 members
Home / Discussions / C#
   

C#

 
GeneralRe: Doubt Pin
#realJSOP11-Mar-09 5:03
mve#realJSOP11-Mar-09 5:03 
GeneralRe: Doubt Pin
Nagy Vilmos11-Mar-09 5:27
professionalNagy Vilmos11-Mar-09 5:27 
GeneralRe: Doubt Pin
Dan Neely11-Mar-09 5:49
Dan Neely11-Mar-09 5:49 
GeneralRe: Doubt Pin
#realJSOP11-Mar-09 23:50
mve#realJSOP11-Mar-09 23:50 
GeneralRe: Doubt Pin
Dan Neely12-Mar-09 3:10
Dan Neely12-Mar-09 3:10 
GeneralRe: Doubt Pin
Xmen Real 11-Mar-09 5:19
professional Xmen Real 11-Mar-09 5:19 
GeneralRe: Doubt Pin
CPallini11-Mar-09 4:54
mveCPallini11-Mar-09 4:54 
GeneralRe: Doubt Pin
Xmen Real 11-Mar-09 5:12
professional Xmen Real 11-Mar-09 5:12 
GeneralRe: Doubt Pin
harold aptroot11-Mar-09 5:16
harold aptroot11-Mar-09 5:16 
AnswerRe: Doubt Pin
Ennis Ray Lynch, Jr.11-Mar-09 8:48
Ennis Ray Lynch, Jr.11-Mar-09 8:48 
Questionhow can I show the file path instead of ref Pin
wwwxyz11-Mar-09 1:32
wwwxyz11-Mar-09 1:32 
AnswerRe: how can I show the file path instead of ref Pin
wwwxyz11-Mar-09 2:16
wwwxyz11-Mar-09 2:16 
GeneralRe: how can I show the file path instead of ref [modified] Pin
Rutvik Dave11-Mar-09 4:22
professionalRutvik Dave11-Mar-09 4:22 
GeneralRe: how can I show the file path instead of ref Pin
wwwxyz11-Mar-09 5:10
wwwxyz11-Mar-09 5:10 
AnswerRe: how can I show the file path instead of ref Pin
musefan11-Mar-09 2:36
musefan11-Mar-09 2:36 
GeneralRe: how can I show the file path instead of ref Pin
wwwxyz11-Mar-09 2:44
wwwxyz11-Mar-09 2:44 
RantRe: how can I show the file path instead of ref Pin
Nagy Vilmos11-Mar-09 2:55
professionalNagy Vilmos11-Mar-09 2:55 
GeneralRe: how can I show the file path instead of ref Pin
musefan11-Mar-09 3:03
musefan11-Mar-09 3:03 
GeneralRe: how can I show the file path instead of ref Pin
Nagy Vilmos11-Mar-09 3:08
professionalNagy Vilmos11-Mar-09 3:08 
GeneralRe: how can I show the file path instead of ref Pin
musefan11-Mar-09 3:11
musefan11-Mar-09 3:11 
GeneralRe: how can I show the file path instead of ref Pin
Dave Kreskowiak11-Mar-09 4:17
mveDave Kreskowiak11-Mar-09 4:17 
GeneralRe: how can I show the file path instead of ref Pin
Nagy Vilmos11-Mar-09 4:24
professionalNagy Vilmos11-Mar-09 4:24 
GeneralRe: how can I show the file path instead of ref Pin
#realJSOP11-Mar-09 3:19
mve#realJSOP11-Mar-09 3:19 
GeneralRe: how can I show the file path instead of ref Pin
wwwxyz11-Mar-09 3:43
wwwxyz11-Mar-09 3:43 
AnswerRe: how can I show the file path instead of ref Pin
Nagy Vilmos11-Mar-09 4:23
professionalNagy Vilmos11-Mar-09 4:23 
JFC! I gave you the answer already; or at least told you how to advance.

1) Issolate the problem.
Find where it is going wrong and try to bebug it.

2) Your method input, which is crap, does not update the return value. Change the signature to:

private bool input(ref double fx,
        ref double ft,
        ref double alpha,
        ref int n,
        ref int m)


And call it somit like:

ok = input(ref fx,
        ref ft,
        ref alpha,
        ref n,
        ref m);


Don't change anything and compile. What do you see? Come on, you can do it! A few debug statements in the code and you'll soon see that the whole is method is a steaming puile of doo doo.

Personally, I would remove all the try/catch code and see what happens. then I would add try/catches where needed. This means you have to actually test your code for invalid input and/or data but it won't take long.



Panic, Chaos, Destruction.
My work here is done.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.