Computer Science Canada pong project |
Author: | qwertywert [ Wed Apr 29, 2009 12:40 pm ] |
Post subject: | 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. |
Author: | Tony [ Wed Apr 29, 2009 12:52 pm ] |
Post subject: | RE:pong project |
There is a problem with this attachment. Try again. |
Author: | tjmoore1993 [ Wed Apr 29, 2009 6:17 pm ] |
Post subject: | 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... ![]() |
Author: | qwertywert [ Fri May 01, 2009 1:14 pm ] |
Post subject: | Re: pong project |
my bad |
Author: | BigBear [ Fri May 01, 2009 3:52 pm ] |
Post subject: | 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 |
Author: | qwertywert [ Thu May 07, 2009 1:06 pm ] |
Post subject: | Re: pong project |
all right! after some tinkering i fixed the program, thanks for your help |