Computer Science Canada loop question |
Author: | endusto [ Sun Feb 13, 2005 5:48 pm ] |
Post subject: | loop question |
i've checked the manual and stuff but im still not sure how to do this, i know a few other languages, like C++, java ect, and they all have "while loops" so it loops until something equals something else, how do you do that in turing? and, how do you make it so a new variable is created every time? like i have to make something that asks how many courses you have this semester, then it will ask you what you got in each one and find the average, but i dont know how to make a new variable for each mark, if you are asked how many courses you have |
Author: | Drakain Zeil [ Sun Feb 13, 2005 6:05 pm ] | ||
Post subject: | |||
Eh? I think you want to use a for..end for, and an array.
Is that what you wanted? (note: I haven't used turing in a while, my code code be off by a bit) |
Author: | ssr [ Sun Feb 13, 2005 6:09 pm ] | ||||
Post subject: | |||||
Do you want
8) 8) |
Author: | endusto [ Sun Feb 13, 2005 7:36 pm ] |
Post subject: | |
well i want that, but i want it so like, ha1 will be your first mark, ha2 will be your second... ect. |
Author: | ssr [ Sun Feb 13, 2005 8:09 pm ] | ||
Post subject: | |||
then u have to create an array
|
Author: | 1337_brad [ Sun Feb 13, 2005 8:27 pm ] |
Post subject: | Uhh... |
Turing has while loops o.o; *I think* been a while since I turcoded but I am uite sure it does o.o; |
Author: | cycro1234 [ Mon Feb 14, 2005 8:30 am ] |
Post subject: | |
Turing does not have while loops |
Author: | ssr [ Mon Feb 14, 2005 2:55 pm ] |
Post subject: | |
I'm just wondering, is there anyway to create arrays or chnage it like depends on how many numbers the user entered, teh number of arrays are created. using loops and blah blah 8) 8) |
Author: | Tony [ Mon Feb 14, 2005 3:13 pm ] | ||
Post subject: | |||
cycro1234 wrote: Turing does not have while loops
sure it does
ssr wrote: something about arrays
yes - Flexible Arrays |
Author: | ssr [ Mon Feb 14, 2005 8:32 pm ] |
Post subject: | |
WOWOWOWOW thanx Tony,so thats what its for I was just wondering what a flexible array is. |
Author: | StarGateSG-1 [ Tue Feb 15, 2005 12:20 pm ] |
Post subject: | |
Not to be rude but if you already know some java and C++ why are you leanring turing Turing is only good if you don't know any other language at teh time If it is a school course talk to your teacher about advancing your skills not back tracking 8) |
Author: | ssr [ Tue Feb 15, 2005 4:23 pm ] |
Post subject: | |
I only know a little java and still learning, and I dont know any C++? ummm |
Author: | Bacchus [ Tue Feb 15, 2005 11:20 pm ] |
Post subject: | |
i think he wa stalking about endusto |
Author: | ssr [ Wed Feb 16, 2005 12:13 pm ] |
Post subject: | |
Blah use Quote: lalala
anyway I like Turing.. |
Author: | cycro1234 [ Wed Feb 16, 2005 7:10 pm ] |
Post subject: | |
Turing is great if u've never done ne programming in the past, like me |