Click here to Skip to main content
15,860,859 members
Home / Discussions / C#
   

C#

 
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.

GeneralRe: how can I show the file path instead of ref Pin
wwwxyz11-Mar-09 4:43
wwwxyz11-Mar-09 4:43 
GeneralRe: how can I show the file path instead of ref Pin
Nagy Vilmos11-Mar-09 4:46
professionalNagy Vilmos11-Mar-09 4:46 
GeneralRe: how can I show the file path instead of ref Pin
#realJSOP11-Mar-09 4:50
mve#realJSOP11-Mar-09 4:50 
GeneralRe: how can I show the noobie the path instead of the knife? Pin
Nagy Vilmos11-Mar-09 5:12
professionalNagy Vilmos11-Mar-09 5:12 
GeneralRe: how can I show the file path instead of ref Pin
fly90411-Mar-09 11:29
fly90411-Mar-09 11:29 
AnswerRe: how can I show the file path instead of ref Pin
wwwxyz11-Mar-09 5:13
wwwxyz11-Mar-09 5:13 
GeneralRe: how can I show the file path instead of ref Pin
#realJSOP11-Mar-09 5:28
mve#realJSOP11-Mar-09 5:28 
GeneralRe: how can I show the file path instead of ref Pin
Nagy Vilmos11-Mar-09 5:30
professionalNagy Vilmos11-Mar-09 5:30 
Questioncheck if in safe mode Pin
aviadqwerty11-Mar-09 1:26
aviadqwerty11-Mar-09 1:26 
GeneralRe: check if in safe mode Pin
Luc Pattyn11-Mar-09 1:44
sitebuilderLuc Pattyn11-Mar-09 1:44 
QuestionChange desktop wallpaper via windows service (vista) Pin
maxald11-Mar-09 0:57
maxald11-Mar-09 0:57 
AnswerWrong Place For This Question Pin
Nagy Vilmos11-Mar-09 1:16
professionalNagy Vilmos11-Mar-09 1:16 
GeneralRe: Wrong Place For This Question Pin
maxald11-Mar-09 3:10
maxald11-Mar-09 3:10 
GeneralRe: Wrong Place For This Question Pin
Nagy Vilmos11-Mar-09 3:21
professionalNagy Vilmos11-Mar-09 3:21 
GeneralRe: Wrong Place For This Question Pin
Dave Kreskowiak11-Mar-09 4:22
mveDave Kreskowiak11-Mar-09 4:22 
GeneralRe: Wrong Place For This Question Pin
maxald12-Mar-09 4:32
maxald12-Mar-09 4:32 
GeneralRe: Wrong Place For This Question Pin
Dave Kreskowiak12-Mar-09 12:20
mveDave Kreskowiak12-Mar-09 12:20 

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.