Computer Science Canada Getting the "Invalid integer input" error and I don't know why |
Author: | cactussenpai [ Fri Mar 25, 2016 7:05 pm ] | ||
Post subject: | Getting the "Invalid integer input" error and I don't know why | ||
What is it you are trying to achieve? I am writing a program which tells a student their average if they input four marks. What is the problem you are having? When the program gets to where the user inputs the marks, it crashes, giving the error. Describe what you have tried to solve this problem I have tried changing many places of the program but to no avail. Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Please specify what version of Turing you are using Turing 4.1.1 |
Author: | Dreadnought [ Fri Mar 25, 2016 8:43 pm ] | ||
Post subject: | Re: Getting the "Invalid integer input" error and I don't know why | ||
get will stop reading input at the first whitespace character. So If I enter my name as
|
Author: | Gaming Lyfe [ Tue Mar 29, 2016 6:24 pm ] |
Post subject: | RE:Getting the "Invalid integer input" error and I don\'t know why |
You could use the command get:*, which allows the get command to take in multiple words instead of just one. ex. get:* name |