typedef unsigned short int ushort;
ushort bonus = 10;
cout<< "\nBonus: " <<bonus<<endl;
}
i understand that the cin object is an input object, so, i want to put a value into the variable called fuel, so ive put cin >> fuel;, but when i run the progam nothing happens, all that comes up is everything up the "how much fuel?", i tryed typing 50 in thinking i would put the value of 50 into the fuel variable, then when i press enter to input the value to fuel the program closes, how exactly do i input a value to a variable whilst the program is running????????