ANSI headers...
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...
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]
<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]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement