Well thanks for the help but i think i'll have to abandon the idea and try something else.
Well thanks for the help but i think i'll have to abandon the idea and try something else.
Hello,
For the infinite loop, try replacing the line
by that one :Code:cin.getline(pointchoi, 3, ' ')>>points2;
It seems that the first line keeps the ending char in the input stream so that the next iteration puts ' h' (or ' m') in pointchoi.Code:cin >> pointchoi >> points2;
Hey, i have gone and done something different now, but i've certainly learnt my lesson.
Your explanation makes sense, thank you.
Games are a bit hard to grasp at first.... But actually wacthing people play a game you made makes yea go yea it works... kinda... well ... ok so ... hrmmm... programming games is SO much harder than anything else.... There will always be errors in the code just like any major company will tell you.... I programmed a game I dont remember why but it kinda works tho I didnt use classes... only functions I will send yea the cpp if you want just drop me a line at my e-mail and ask for it.... you may be able to use some of it hehe