Looks to me that you've mixed up the stream extraction / insertion operators @ line 21.
cin << ...
cin >> ...
and you should be set. Good luck!
thanks, it works now! Got 49 errors so I didn't even look at that:P
Aye, modern C++ compilers leave much to be desired with their output...hopefully they'll get around to fixing it up one of these decades.