I just started learning this spreme language of VC++ using
version 7.0.9037 on Visual Studio .NET (a bit buggy since
this is Beta 1). From my previous post I learnt that I
should use <iostream> instead of <iostream.h>.
Here is my VERY SIMPLE code;
using namespace std;
int main (void)
cout << "Hello World!";
The above-mentioned code works without a hitch, but if I
take out "#include <iostream>" directive or "using
namespace std;", the error message says, "error
C2065: 'cout' : undeclared identifier". Why do I need
both? I thought "std" embodies standard input and output
libraries and therefore I don't need #include directive...
Why can I NOT find "std" header file under \Microsoft
Visual Studio.NET\Vc7\include\? All the other header files
are in this "include" folder. Is this "std" something very
special??? Where can I find it?
What is your opinion in using "using namespace std;"
extravagantly? I read some articles saying that we can use
it for a small project, but not for a big one since it
might mask global variables scope unnecessarily (or
unexpectedly), in other words, they suggest
use "std::cout". What do you think?
Thanks for your time,
Tetsuya Oguma, Sydney, Australia