new total and carrying it over.
what I'm looking for is this:
to have the new total of a persons money carried over into the new game. here is some code i did with out the carrying over.
Code:
if ( gameStatus == WON ){
w = x * 2;
cout << "You have won: " << w << endl;
newtotal = w + total;
cout << "You now have " << newtotal << " dollars. ";
newtotal = total;
}
sorry if its badly writen.. im still new.. but what i thought was that the newtotal = total; would over write the old total. and carry it to the next game.. but it doesnt. any ideas?