MLUG: RE: [MLUG] c++ complier error in redhat 9.0/help
RE: [MLUG] c++ complier error in redhat 9.0/help
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
hear is my c program

#include <iostream>
int main ( )
{
    cout << "helloworld";
    return 0;
}


First thing I wonder is that it looks more like c++ than c. If it were a c
program, I'd be expecting a printf line, not a cout

This means any help I cna offer is limited, as I did program in c, but not
really in c++

Try changing your 4th line to:

    std::cout << "helloworld";

If you actually wanted a c hello world, I'd expect something like:

    printf ("helloworld\n");

Russell.

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members