program problems.

This is a discussion on program problems. within the C++ Programming forums, part of the General Programming Boards category; I am getting nowhere on this one. any help would be appreciated.
Code:
#include <iostream.h>
#include <string.h>
#include <fstream.h>
// ...

So put a ; on the end of the return statement at line 53 - those are what those numbers are, line numbers.

Also, learn how to indent code more consistently, then a whole bunch of problems similar to "Compound statement missing" just vanish, because it becomes very obvious something is missing before you ever press "compile"

My C++ teacher typed in the string code. He just emailed it to me. Is it wrong?

Couldn't say without looking on the code he sent.

comparing C-style strings with > IS wrong

teaching to use C-style strings before C++ strings - discussable. IMHO better start with C++ ideology of using classes and only then fallback to C-style extentions... I learned the opposite way and I'm still a C-guy