In visual studio c++ consider the following code
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
cout<<"Hello!";
return 0;
_getch();
}
In the above code in the #include<iostream>
header file we dont use the .h extension because it produces an error.But in the header file #include<conio.h>
the .h extension is added.
Why does it produces error in case of #include<iostream>
and not in case of #include<conio.h>
If we write only conio it produces an error.
And one more question why we use #include"iostream" header file when cout and cin are already included in namespace std