That is C code, not C++. Are you sure you are in a c++ class?
for a fstream tutorial
click here.
cout is quite easy to learn. First you have to include <iostream> header file -- it does not have a .h extension. Then declare the std namespace.
#include <iostream>
using std::cout;
int main()
{
cout << "Hello World\n";
}
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.