Possible Duplicate:
Difference between void main and int main?
Alright, so I'm using bloodshed complier, first thing I should note is I'm using a 2001 edition C++ for the absolute beginner, was there any changes to C++ since 2001 that would effect the validity of this book? I ask because I know php has php5 and now php6 but I haven't seen any C++03.
Now for the reason I asked that, in this code it uses,
void main (void)
why would I want an argument to be void? what does this do.
But when I run the void main (void)
in my compiler it says that main must have a "int" before it. So I can't have "void" main (void);
Also, once the code runs through, as long as there isn't a "cin" the program closes. Is this normal behavior, is there a better way to stop this besides making a cin at the end of my program?