"Salt_Peter" <> wrote in message
news: ups.com...
>
>>
>>
>> void main()
>
> void main() is illegal in C++. If you have a teacher that specifies
> otherwise, he/she should be sternly corrected. In fact, void main() was
> never, ever accepted in C++.
You'd be more correct to say that void main() was never accepted in
"standard" C++. It's not only _accepted_ by some older C++ compilers, but
it's actually _generated_ by some older C++ IDEs, when you initially create
a C++ "project".
(Yeah, yeah, get a better compiler, I know. But we could correct the error
a little more friendly-like, dontcha think?)
-Howard
P.S. I'd like to see you go to class and "sternly correct" your instructor.
That's _sure_ to get you a nice grade!