🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Wicked C++

Started by
4 comments, last by msn12b 24 years, 4 months ago
Here''s some fun C++ trivia to think about: 1. Write a C++ program that emits prime numbers as error messages. 2. Dynamically change the type of an object at runtime using built-in C++ language features. MSN
Advertisement
quote:
1. Write a C++ program that emits prime numbers as error messages.

I thought that was already commercially available as "Windows 98".
Let me rephrase #1:

Write a C++ file that causes the compiler to emit prime numbers as error messages.

And no, I don''t believe this is a feature in Windows 98

MSN
Isn''t all this compiler specific?
It''ll be years before I have that much time on my hands to throw away.


Lack
Lack
Christianity, Creation, metric, Dvorak, and BeOS for all!
Well, isn''t that a bunch of pointless exercies

Maybe the object type change would be useful under some circumstances. Although I cannot think of any right now!

Take it easy,

-Mezz

This topic is closed to new replies.

Advertisement