-
C++ code in 1999
Hi all:
I have a C++ program for me to use, but it is written in 1999, and I notice that the some aspects of C++ program now different from that in 1999, such as "using namespace std" and "#include <cmath>," I wonder where can I get a complete list of changes.
More specifically, I have the following header headers, some of them may be in old style, but I just don't know:
#include <stdio.h>
#include <string.h>
#include <float.h>
#include <values.h>
#include <limits.h>
#include <ostream.h>
#include <assert.h>
#include <stdlib.h>
#include <math.h>
#include <iostream.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <io.h>
#include <fstream.h>
#include <time.h>
#include <malloc.h>
#include <unistd.h>
#include <ctype.h>
Thank!
-
>some of them may be in old style, but I just don't know
All of them are, with the exception of values.h, which isn't a standard or pre-standard header. Most likely it's a compiler extension or a user defined header.
[edit]
Please don't change your post so that the answers are invalidated. Now you have all kinds of non-standard headers by every definition of the word. I would recommend not trying to update it if you don't have to.
[/edit]
-
I think I need to use the code. The code won't compile under MS Visual C++.Net 2003 version. Another possible solution is to get the C++ compiler in 1999 version, but I just cannot find one yet.
-
any help is appreciated!!!!!!!!!!!!!!!!!!
-
Well if you are a coder you should be able to translate it to the standard. Google is amazing when it comes to giving answers, you should try there.
-
Thanks! I get one place to know some thing about this.
-
A C++ compiler built in 1999??
Why don't you go to Bloodshed's website and download an earlier version of dev-C++?
The latest is 4.992 and the most acient one I have had is version 4.880. The compiler was pretty rubbish and any silly warnings I got with that compiler are eradicated in the 4.992 version.
But if you want a good one, go for MSVC++2005 express edition. You can download it free from Microsofts website. I also own 2003.net and belive it to be an excellent compiler, one of the best IDE's and compiler set I am ever likely to own.