CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2002
    Location
    Busan, South Korea
    Posts
    1

    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
    Attached Files Attached Files

  2. #2
    Join Date
    Jun 2002
    Posts
    1,417
    The function calchi is not prototyped and you are passing the wrong parameters.

  3. #3
    Join Date
    Jun 2002
    Posts
    1,417
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured