Namaskara, Bhaskar.
> Hi,
>
> I just downloaded and installed dev C++ for my windows XP machine. I
> opened the hello project (hello world) and tried to compile it. But the
> compiler is giving lots of errors saying that iostream.h is not available.
> All the header files are there but the system is not able to recognize it.
> Do I have to set some environment variables or something?? What do I need
> to do? Your kind inputs in this regard would be appreciated.
>
> --Bhaskar
<iostream.h> is deprecated. The latest C++ standard specifies using
<iostream> along with namespaces. cout, cin, cerr, all standard library
functions are in the `std' namespace. To access them, you would say
std::cout, or std::cin.
So your hello program would be
------- Start -------
#include <iostream>
int main()
{
std::cout << "Hello, world.\n";
return 0;
}
------- Stop -------
However, when you run it directly from the IDE, or from Windows explorer,
you won't see any output. Run the program from a console, or see the FAQ.
___________________________________________________________
Abhijit Shylanath
E-mail: mu...@gm... || ibr...@bi...
Web-site: http://mudeth.tripod.com/
|