ANSI headers...

Started by
1 comment, last by elis-cool 22 years, 1 month ago
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...
[email=esheppard@gmail.com]esheppard@gmail.com[/email]
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.

<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]
------------------------------BASIC programmers don't die, they just GOSUB and don't return.

This topic is closed to new replies.

Advertisement