(I\'m using Visual C++ 2008) I\'ve always heard that main() is required to return an integer, but here I didn\'t put in return 0; and and it compiled w
return 0;
This is part of the C++ language standard. An implicit return 0 is generated for you if there's no explicit return statement in main.