Computer Science Canada

Resetting a program

Author:  turwaa [ Tue Apr 17, 2012 5:58 pm ]
Post subject:  Resetting a program

I created this program which lets a user select what type of shape they want to create. I was wondering how I could get it to clear after the user has their shape displayed for them (I don't know where to put the "cls" funtion). Secondly, I was wondering when the person is picking how long/wide/high they want their shape, if they select a word instead of number then the program will tell them to re enter a correct value.
I have attached my program.[/quote]

Author:  Raknarg [ Tue Apr 17, 2012 6:12 pm ]
Post subject:  RE:Resetting a program

For validation, you could use a loop and strintok (s : string)

That will take in a string, and result a boolean if the string entered is also compatible as an integer.

Author:  turwaa [ Tue Apr 17, 2012 7:41 pm ]
Post subject:  RE:Resetting a program

what do you mean? could you post that for me

Author:  Tony [ Tue Apr 17, 2012 8:09 pm ]
Post subject:  RE:Resetting a program

here -- strintok


: