hi, i recieve this error in my programms:iostream.h:no such file or directory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mobina

    #1

    hi, i recieve this error in my programms:iostream.h:no such file or directory

    i dont know why i recieve this error in most of my programms. eg:
    #include< iostream.h >
    int main ( )
    {
    int a;
    int b;
    int sum;
    cout<<"enter two integer numbers">>
    cin>>a>>b;
    sum=a+b;
    cout<<"sum is"<<sum<<"0"
    cout<<a<<"+"<<b <<"="<<sum;
    return 0;
    }
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    iostream.h is C++ from before 1998. Most compilers do not ship those antique headers.

    Try <iostream>, which is the new header.

    None of the standard ANSI C++ headers end in ".h".

    Comment

    Working...