
-----------------------------------
qwertywert
Wed Apr 29, 2009 12:40 pm

pong project
-----------------------------------
this is a code me and my partner modified for a project. how do i make the program ignore any input that is not an integer for the multiplication questions? any other suggestions are good too.

-----------------------------------
Tony
Wed Apr 29, 2009 12:52 pm

RE:pong project
-----------------------------------
There is a problem with this attachment. Try again.

-----------------------------------
tjmoore1993
Wed Apr 29, 2009 6:17 pm

RE:pong project
-----------------------------------
I think this might help you.
http://compsci.ca/holtsoft/doc/strintok.html

It checks if a string can be converted to int... :)

-----------------------------------
qwertywert
Fri May 01, 2009 1:14 pm

Re: pong project
-----------------------------------
my bad

-----------------------------------
BigBear
Fri May 01, 2009 3:52 pm

RE:pong project
-----------------------------------
You need to get the input as a string and then check to see if it is valid input or an integer use strintok in a loop

-----------------------------------
qwertywert
Thu May 07, 2009 1:06 pm

Re: pong project
-----------------------------------
all right! after some tinkering i fixed the program, thanks for your help
