Computer Science Canada Help with functions |
Author: | NitroN2O [ Sat Dec 02, 2017 4:03 pm ] | ||
Post subject: | Help with functions | ||
What is it you are trying to achieve? To ask the user if their Input was correct What is the problem you are having? How to put result from one function to another Describe what you have tried to solve this problem 2 hours of searching and testing 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 4.11 |
Author: | TokenHerbz [ Mon Dec 04, 2017 3:12 am ] | ||
Post subject: | RE:Help with functions | ||
when you call checkinput, your declare tempname as an empty string, instead of calling a function to do it, thats the issue. passing functions into functions can be annoying if your not careful, i dont usually think its required in this case as the function should do both the verification, etc, however if you wanted to use it over in other blocks i guess you could do something like this... dont copy my code but you can use it to solve your problem for school.
|