EmperorNero
Golden Member
here is a simple programming example in Object Oriented Programming in C++ by Robert Lafore (just notice the first 4 lines):
#include <iostream>
using namespace std;
#include <conio.h> // for getche()
int main()
{
int number;
number = getche();
if (number > 10)
cout << "Number is greater than 10;";
return 0;
}
how come #include <iostream> (without the .h) is legal while I have to include the .h in #include <conio.h>? If I exclude the .h from conio.h, VC++ would say there is no such file.
#include <iostream>
using namespace std;
#include <conio.h> // for getche()
int main()
{
int number;
number = getche();
if (number > 10)
cout << "Number is greater than 10;";
return 0;
}
how come #include <iostream> (without the .h) is legal while I have to include the .h in #include <conio.h>? If I exclude the .h from conio.h, VC++ would say there is no such file.