| Title |
User |
Message |
Place |
Date Posted |
| problem in code |
Venkat24 |
In my code, i know everything is correct and there's no syntax errors. But when i enter it, it says that the words BLUE, RED and WHITE are not defined. PLs help me! |
wc151j1 |
Jan 03, 2016 - 7:13:29 pm UTC |
| Re: Clarification |
royanitra04 |
That's why there are while loops. |
ccc07j2 |
Jan 03, 2016 - 4:40:42 pm UTC |
| Re: Another question... |
jargon |
Well, what exactly does break do? When does it make sense to break? |
ccc07j2 |
Jan 03, 2016 - 1:59:14 am UTC |
| Re: Who can help me? |
jargon |
I'm sure many people *can* help you. It's a matter of whether anyone will. If you simply post your code (which, incidentally, is visible anyway to people who have solved the problem), then I doubt peo... |
acmtryouts3b |
Jan 03, 2016 - 1:57:08 am UTC |
| Another question... |
DeboTessie |
Now, whenever I type in TTYL, it just stops, but does not print out the translation. What do I do?????? |
ccc07j2 |
Jan 03, 2016 - 1:36:53 am UTC |
| Who can help me? |
Tianqi |
(admin edit: snip. code from http://wcipeg.com/submissions/src/350033) |
acmtryouts3b |
Jan 03, 2016 - 1:18:51 am UTC |
| Re: Clarification |
spencereir |
You're really close with what you have now! Instead, you should take your while statement and move it up to the top. That way, the program will do this: While there is still input left Is thi... |
ccc07j2 |
Jan 02, 2016 - 11:26:23 pm UTC |
| Clarification |
DeboTessie |
Just for my own clarification, how do you make a program continue to run until a specific input is obtained? I don't exactly understand how to do that. |
ccc07j2 |
Jan 02, 2016 - 11:04:28 pm UTC |
| Re: Getting Runtime Errors |
spencereir |
That did the trick, thanks |
ccc05j5 |
Jan 02, 2016 - 2:27:06 am UTC |
| Re: Getting Runtime Errors |
jargon |
Haha that took me way too long to figure out. Guess my Ruby is rusty... Your problem is with Kernel#exit!, not with rescue. Kernel#exit! by default will result in an exit failure (a nonzero exit code... |
ccc05j5 |
Jan 02, 2016 - 1:45:04 am UTC |