|
From: Per W. <pw...@ia...> - 2006-02-11 12:45:34
|
You could use the iostream.h. Note that the cited message was a warning,
not an error, and it explicitly said that the header you used was
deprecated, i.e. not recommended for use anymore.
The file conio.h on the other hand is a non-standard file, i.e. a file
that have only existed on some platforms (normally old MS-DOS compilers).
Since most compilers does not have this file, it shouldn't - and in most
cases can't - be used.
/Per W
On Fri, 10 Feb 2006, Titi Anggono wrote:
> Hi all,
>
> I just tried dev-cpp 4.9.9.2 today and began with
> ----------------
> #include <iostream.h>
> #include <conio.h>
> main()
> {
> cout <<"Hello word";
> getch();
> }
> -----------------
> the code wasn't compiled and I got following message "
> #warning This file includes at least one deprecated or
> antiquated header. Please consider using one of the 32
> headers found in section 17.4.1.2 of the c++ standard.
> ..."
>
> But, when I used stdio.h and replaced cout with printf
> the code compiled and the result shown.
> Can someone explaine why I couldn't use iostream
> header ?
>
> Thanks
> Titi
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|