I'm trying to compile a basic program and I keep getting errors that cout is an undeclared identifier. The relevant code is below. I'm working with "Beginning C++ Through Game Programming" Third Edition, and I'm using Visual C++ 2010 Express on Windows 7 64-bit.
Line 14 will result in integer division (change 3 to 3.0),
Line 14 is working with uninitialized data (move that statement to line 31),
Line 32, though syntactically correct, is not what you want (replace the comma with <<)