[prog] Re: C++
Sue Stones
suzo at spin.net.au
Mon Mar 15 14:13:05 EST 2004
On Mon, 15 Mar 2004 12:03 pm, wolf wrote:
> well it now compiles but returns this error:
> Compiling...
> ld: Undefined symbols:
> _main
You need to define main as classname::main() - just as you do with the other
functions.
> shell returned 1
>
> also does anyone know how and where in the program to tell it to write
> the information
> to a file?
You will need to look up filestreams in your text book. It will have examples
on how to do it. Alternatively look for IOstreams.
sue
More information about the Programming
mailing list