[glug-t] Re: ++C ->C++

Instead of 
#include <iostream.h>

use the following 

#include <iostream>
using namespace std;

I guess the warning was descriptive enough. Here it is

Please consider using one of the 32 headers found in section 17.4.1.2 of the 
C++ standard. Examples include substituting the <X> header for the <X.h> header 
for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. 
To disable this warning use -Wno-deprecated.

> as below.It simple gave me a hell a lot of error's and said
> something.But it only worked.Can you tell me what kind of C++

said something! - Please be descriptive when you mail to the list.

> is this ,and why doesnt the C++ program below  gets compiled
> with some strange warnings about X and all that..

The old C style headers are deprecated. Thats all.


- Vijay Kumar

Non-free* software sucks. - RMS
* 'free' as in freedom.


---------------------------------------------
This message was sent from RECTMAIL.
http://www.rect.edu/ or http://rangoli.rect.ernet.in/


---------------------------------------------------------------
To unsubscribe send a mail to glug_t-request@xxxxxxxxxxxxx with 
'unsubscribe' as subject.

Website: http://glugt.linuxisle.com

Other related posts: