As you are very much under time pressure, I'll post the solution directly. If you're fair you I hope you'll grant me the project.
I'm assuming the only thing you are interested in is the solution for your streaming problem (7-9).
Problem:
The problem is that you are mixing two different iostream implementations: std::iostream / iostream from the streams library (iostream.h). As you are using the namespace std, the compiler doesn't know which one to use if you do not specifiy the std:: in front of ostream. In reality, you want to use the ostream from iostream.h
Solution:
- Remove 'using namespace std'
- Search / replace every 'string' with 'std::string'
- Search / replace every 'std::ostream' with 'ostream'
Voilà - it works!
Kind regards,
Matthias Helletzgruber