|
-
June 20th, 2002, 08:33 AM
#11
Re: Re: Is this possible? ;^)
Originally posted by Paul McKenzie
Using an ANSI C++ compiler -- this wouldn't even compile. Even if you did have some header called ostream.h and main.h, and you did have a class called UINT, this code won't compile for the following reason:
Code:
// void main() This is an error
int main() // This is correct
So is this possible? Not with a conforming compiler. There are compilers now that flag it as an error, so I can't wait when VC++ is really ANSI compliant and starts to flag that line as an error. The surprised look on the faces of programmers will be a sight to see 
Regards,
Paul McKenzie
Ooopssss! 
Thank you!
ZDF
What is good is twice as good if it's simple.
"Make it simple" is a complex task.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|