iostream.h, line 1: catastrophic error: #error directive:
<iostream.h> is not a Standard header, use <iostream> instead.
Note that when you change this header name, that identifiers such as
"cout" and "endl" will no longer work, as they are in namespace
"std", so use be "std::cout" and "std::endl" respectively.

Line 18: error: conio.h: No such file or directory
Line 16: error: 'x' has not been declared
compilation terminated due to -Wfatal-errors.

kpsg25690

22Sep2009 15:27

Re: urgently need code to be corrected

Quote:

Originally Posted by naimish
(Post 57785)

iostream.h, line 1: catastrophic error: #error directive:
<iostream.h> is not a Standard header, use <iostream> instead.
Note that when you change this header name, that identifiers such as
"cout" and "endl" will no longer work, as they are in namespace
"std", so use be "std::cout" and "std::endl" respectively.