in reply to JA(C|P)H

Hmm, I seem to be runnin into the following error message:
JACPH_441514.c:17:22: iostream.h: No such file or directory JACPH_441514.c: In function `main': JACPH_441514.c:22: `for' loop initial declaration used outside C99 mod +e JACPH_441514.c:23: `cout' undeclared (first use in this function) JACPH_441514.c:23: (Each undeclared identifier is reported only once JACPH_441514.c:23: for each function it appears in.) JACPH_441514.c:20: warning: return type of `main' is not `int'


(I don't know C, so be gentle of if this is a trivial error message)

Replies are listed 'Best First'.
Re^2: JA(C|P)H
by ktross (Deacon) on Apr 29, 2005 at 15:26 UTC

    You need to have iostream.h in your c library files for this one. That should clear up all of the errors except possibly

    JACPH_441514.c:22: `for' loop initial declaration used outside C99 mode

    Don't know what that ones about. Not a c expert myself. Runs under Visual c++ 6.0