Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

elis-cool

ANSI headers...

This topic is 5968 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Are there the new ANSI header for all the old style include files? like: iostream.h -> iostream string.h -> string? cstring? stdio.h -> ??? fstream.h -> ??? etc...

Share this post


Link to post
Share on other sites
Advertisement
Most of the "old" C++ headers can be made new with by removing the ".h" suffix. The ANSI C headers are part of C++ without the ".h" suffix but with the letter "c" prepended to them.

Share this post


Link to post
Share on other sites
<iostream.h> -> <iostream>
<string.h> -> <cstring>
note: there is also a <string> library, but don't get it mixed up with <cstring>, the new version of <string.h>
<stdio.h> -> <cstdio>
<fstream.h> -> <fstream>
<math.h> -> <cmath>
<time.h> -> <ctime>

Remember, that everything in the new headers is all under the std namespace. There are other new headers like this, but i dont remember any more of them.

EDIT: doh! forgot about HTML tags!

------------------------------
If someone asks you "A penny for your thoughts" and you put your two cents in, do you get change?

[edited by - GarlandIX on March 21, 2002 12:05:09 AM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!