RE: [Dev-C++] Which include file to choose?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: P.D. v. Z. <pa...@my...> - 2003-09-28 05:00:30
|
Everything in the new headers (the standard C++ headers) is defined in a
namespace called "std" (stands for "standard"). You can access
variables/functions/classes in the std namespace by using the scope
operator ("std::cout" for example), by importing them into the current
namespace by a "using" directive ("using std::cout;" for example), or by
importing the entire namespace into the current namespace ("using
namespace std;"). For cout/cin/cerr/clog etc you should use <iostream>.
Here's a small example:
#include <iostream>
using namespace std;
int main()
{
cout << "Goodbye cruel world." << endl;
return 0;
}
Hope this was of any use to you.
Goodnight,
Paul
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Roger
Chrispim
Sent: Sunday, September 28, 2003 2:43 AM
To: dev...@li...
Subject: [Dev-C++] Which include file to choose?
Dear sir,
If I use #include <iomanip.h>, I got a message saying "deprecated or
antiquated header". If I use #include <iomanip>, I got messages saying
"'variable' undeclared (first use this".
Which header should I use when using cout, cin, ...
I am using Windows 95. I am using the standard instalation (I made no
modifications to the seeting defined during the installation).
Thank you
Roger
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.505 / Virus Database: 302 - Release Date: 30/7/2003
|