View Single Post
  #7 (permalink)  
Old August 6th, 2003, 03:51 PM
7stud 7stud is offline
Authorized User
 
Join Date: Jul 2003
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:void main(void)
||
void main()

Are premissable C++ entry points.
Quote:
quote:void main(int argc, char **argv)
...
void main(void)
...
are valid C++ constructs.
Your claim that using void as the return type is allowed under the C++ standard is clearly erroneous.

Quote:
quote:
int main()
{
   return 0;
}

Isn't that the correct way to actually do that? Just wondering
Yes.
Reply With Quote