Lesson One

FILE objects

In C Language input and output file streams are named stdin,
stdout and stderr.  In C++ the equivelent objects are named cin,
cout and cerr.

Use "#include <stdio.h>" for C.
Use "#include <iostream>" for C++.

Examples of use: C

#include <stdio.h>

int main()
{
print("hello there\n");
return(0);
}

C++

#include <iostream>

int main()
{
cout << "hello there" << endl;
return(0);
}

Type "man stdio" to learn all the
C Language standard file streaming functions.

Click here to see the C++ cout manual page