I am just starting to learn C++, and I have downloaded Dev-C++ v 4.9.7 and when I go to File > New > Project and then pick Counsle Application (like the tutorial on this site says to) everything works fine. Then I put the code in, which at this point is:
#include <iostream.h>
int main()
{
int thisisanumber;
cout<<"Please enter a number:";
cin>>thisisanumber;
cout<<"You entered: "<<thisisanumber;
return 0;
}
and when I go to Compile it has a bunch of error messages like:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include"
main.cpp:1:22: iostream.h: No such file or directory
main.cpp: In function `int main()':
main.cpp:9: `cout' undeclared (first use this function)
main.cpp:9: (Each undeclared identifier is reported only once for each function
it appears in.)
main.cpp:11: `cin' undeclared (first use this function)
make.exe: *** [main.o] Error 1
Execution terminated
And if I try to go to Run it says it's not compiled. What should I do, I tried changing the code, picking a new thing (ie New > Project and then one of the other choices) and even reinstalling the application. Someone please help me.