You want to use a newer compiler. Nothing on that source is going to work but this:

int main()
{
return 0;
}

And im even reluctant about that much. TurboC++ at the time did not have any of todays standards such as namespaces,try/catch clauses, or even streams. It was just C with classes. You will want to use a newer compiler. I recommend devc++ from bloodshed.net. If you have to use dos, try finding dos binaries for MinGW. Good luck

This question has already been answered. Start a new discussion instead.