-
1 Attachment(s)
C2660... some problems
Hi ! A few days ago, I bought a book about engineering ,especially computational physics. I needed code of numerical integration scheme provided by the book. But there was no diskett in it , inevitably I typed 965 lines! I think I did correctly, but result was not good. 5 errors are annoying me...
Please, take a look at my attached file and help me out...
Thank you.
-hanst
-
The function calchi is not prototyped and you are passing the wrong parameters.
-
On a closer look, there are several places where calchi() and init_log() are prototyped INSIDE other functions and without parameters. Delete all these. Then at the top of the program, and after the definitions of the structures, add these two lines OUTSIDE any function.
void calchi(Stack *U, int lev);
void init_log(Stack *U, int l);
pre-declaration of functions without parameters and inside other functions stem from ancient days before any ansii standards for the C language and before C++ was ever heard of.