There's a subtle difference.
"iostream.h" is the header file for the old Standard C++ Library. This file
is deprecated in Visual C++ .NET 2003. Instead, you must use "iostream"
header and specify the namespace "std" to access the good-old "cout", "cin"
etc functions. If you wish to know more of this behaviour, search MSDN with
string "iostream differences from Standard C++ Library"
There are two choices you can use. Which one you choose is a matter of
preference and taste. Naturally, it may be a matter of namespace clashing if
you have similarly named functions, objects or structures as the Standard
C++ Library.
Solution #1: The 'using namespace' keyword (generally safe)
#include <iostream>
using namespace std;
cout << "This will print a line of text" << endl;
----
Solution #2: Full namespace resolution (always safe, but bulkier)
#include <iostream>
std::cout << "This will print a line of text, too" << std::endl;
----
Hope this helps
-Antti Keskinen
"sg10241024" <sg********@hotmail-dot-com.no-spam.invalid> wrote in message
news:42********@127.0.0.1...
Hello,
I included the header "iostream"
Why is there only the possiblity of including
#include<iostream>? From Visual C++ 6 I know the iostream.h.
The name doesnt't really interest me. But it should work. The library
consists of the commands like "cout", "cin", ... But if I want to use
these commands I get an compiler error that they are unknown.
What's the problem? Do I miss something?
Thanks
Sarah
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com