Hi all,
I have a question but not sure if I am in the right forum, so please let me know if there is a more appropriate one to ask the question. I am messing with c++ from a book (C++ for Linux) and when I compile the programme below with the command “gcc cplus.cpp –o myoutput” I get stuff about the <iostream.h> it says that I am using one of 32 headers found in section 17.4.1.2 of the c++ standard and that it is depreciated or antiquated. So my question is what should I use instead of <iostream.h> thx in advance.
the programme was
The tougher it gets the more you learn! The more you learn the tougher it gets!
I have a question but not sure if I am in the right forum, so please let me know if there is a more appropriate one to ask the question. I am messing with c++ from a book (C++ for Linux) and when I compile the programme below with the command “gcc cplus.cpp –o myoutput” I get stuff about the <iostream.h> it says that I am using one of 32 headers found in section 17.4.1.2 of the c++ standard and that it is depreciated or antiquated. So my question is what should I use instead of <iostream.h> thx in advance.
the programme was
Code:
#include <iostream.h>
int main()
{
unsigned short shortvar=5;
unsigned long longvar=65535;
long svar = -65535;
cout << "shortvar :\t" <<shortvar;
cout << " Address of shortvar :\t";
cout << &shortvar << "\n";
cout << "longvar :\t" << longvar;
cout << " Address of longvar :\t";
cout << &longvar << "\n";
cout << "svar : \t" << svar;
cout << " Address of svar : \t";
cout << &svar << "\n";
return 0;
}
The tougher it gets the more you learn! The more you learn the tougher it gets!