Original Post
So I got Beginning C++ Game Programming, off of amazon. I'm starting too read it, an work on some of the examples. But I can't figure out what's wrong with it. I tried an earlier example, but I couldn't find answer too that one either. I looked at the included code, and it looked pretty much the same. Anyway, here's the example. I would like to know what I have to fix too make this code run. // Game Stats // Demonstrates declaring and initializing variables #include using namespace std; int main() { int score; double distance; char playAgain; bool shieldsUp; short lives, aliensKilled; score = 0; distance = 1200.76 playAgain = 'y'; shieldsUp = true; lives = 3; aliensKilled = 10; double engineTemp = 6572.89; cout << "\nscore: " << score << endl: cout << "distance: " << distance << endl; cout << "playAgain " << playAgain << endl; // skipping shieldUp since you don't generally print Boolean values cout << "lives: " << lives << endl; cout << "alienKilled: "<< aliensKilled << endl; cout << "engineTemp: " << engineTemp << endl; int fuel; cout << "\nHow much fuel? "; cin >> fuel ; cout << "fuel: " << fuel << endl; typedef unsigned short int ushort; ushort bonus = 10; cout << "\nbonus: " << bonus << endl: return 0; }