fatal error C1083: Cannot open include file: 'iostream.h'

I'm a beginner in C++ and currently taking this subject.
Using visio studio 2013

here is my programming code:

#include<iostream.h>
#include<conio.h>

main()
{
int q, w;
int new1[5];

for (q = 0; q < 5; q++)
{
cout << "Enter a random number:";
cin >> new1[q];
}
cout << endl;

for (w = 0; w < 5; w++)
{
cout << "The number you have entered:";
cout << new1[w];
cout << endl;
}

getch();
}


Please help me solve the C1083 error and i also have errors like cout, cin and endl as undefined in the error lists.
It should be this:

1
2
3
4

#include <iostream>



(No ".h")
It may not like <conio.h> either.

You can use std::cout, std::cin, std::endl.

The compiler will probably want main to return a value int main() - and return 0; would be the last line before the closing brace of main.

Just how old is the course you are doing / book you are reading? <iostream.h> was deprecated in 1998, with the inclusion of namespaces and various other things. Also, just on a side note, you should really give reasonable variable names, so you can understand what is going on.
Topic archived. No new replies allowed.