Mail Archives: djgpp/1999/01/24/21:21:45
Ben Cluff wrote:
> All C++ programs need to have the function -- int main(), You cannot rename
> this and it also has to be the first.
Well, you CAN rename it, but there would be no point. And it doesn't
have to be the first. When you run your exe,the startup code will look
for a function called main and execute it (actually, it's a bit more
complicated since the linker checks for the main function and the
startup code already knows where it is but...)
you can put how many functions you want before, as long as youhave ONE
main function you will get an exe.
- Raw text -