Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 So you're looking for help? check here first
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Thuged_Out_G




PostPosted: Sat Jan 10, 2004 12:14 am   Post subject: So you're looking for help? check here first

Be sure to check out The Turing Walkthrough for sorted links to many tutorials, and more.

here is a list and link to some of the tutorials for turing on this forum...if you cant find what your looking for, then post the question Razz

ARRAYS-http://www.compsci.ca/v2/viewtopic.php?t=366
ARRAYS-http://www.compsci.ca/v2/viewtopic.php?t=1117
RECORDS-http://www.compsci.ca/v2/viewtopic.php?t=2325
RECURSION-http://www.compsci.ca/v2/viewtopic.php?t=2337
COMPILING-http://www.compsci.ca/v2/viewtopic.php?t=2465
PICTURES-http://www.compsci.ca/v2/viewtopic.php?t=191
WHATDOTCOLOR=http://www.compsci.ca/v2/viewtopic.php?t=2381
smooth animation-http://www.compsci.ca/v2/viewtopic.php?t=193
extreme n00b-http://www.compsci.ca/v2/viewtopic.php?t=967
if statements-http://www.compsci.ca/v2/viewtopic.php?t=367
character control-http://www.compsci.ca/v2/viewtopic.php?t=114
CLASSes-http://www.compsci.ca/v2/viewtopic.php?t=606
SOUND=http://www.compsci.ca/v2/viewtopic.php?t=190
DRAWCHECK-http://www.compsci.ca/v2/viewtopic.php?t=1309
TEXTBOXES/FIELDS-http://www.compsci.ca/v2/viewtopic.php?t=1114
COLLISION DETECTION-http://www.compsci.ca/v2/viewtopic.php?t=75
USEFUL FUNCS/PROCS-http://www.compsci.ca/v2/viewtopic.php?t=853
STRING MANIPULATION-http://www.compsci.ca/v2/viewtopic.php?t=853
UNLISTED COMMANDS-http://www.compsci.ca/v2/viewtopic.php?t=641p
COMMON GUI-http://www.compsci.ca/v2/viewtopic.php?t=452
READ AND WRITE-http://www.compsci.ca/v2/viewtopic.php?t=427, http://www.compsci.ca/v2/viewforum.php?f=3
SIMPLE DRAW COMMANDS-http://www.compsci.ca/v2/viewtopic.php?t=376

LOOPS/GOTO LINE-http://www.compsci.ca/v2/viewtopic.php?t=370
MOUSE COMMANDS-http://www.compsci.ca/v2/viewtopic.php?t=6
USING THE PRINTER-http://www.compsci.ca/v2/viewtopic.php?t=11

you can find the rest of tutorails here and various source code submisions here

chances are that your question is already answered Laughing Use Search function to find what you need
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sat Jan 10, 2004 12:23 am   Post subject: (No subject)

a nice collection of links to most basic tutorials Very Happy way to go.+Bits

make sure to check out [Turing Tutorials] and [Source Code] for additional info. Since if you ask a question that was already answered a number of times, you'd probably just be refered to the tutorial anyways Rolling Eyes
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
shorthair




PostPosted: Sun Feb 01, 2004 7:40 pm   Post subject: (No subject)

This is the first time ive seen this , never looked in her e, really great just , you just helped me find out some infor on printing , thakns for the eawsome tutorial keep up hte good work


+ BITS , Very Happy Very Happy
AsianSensation




PostPosted: Sun Feb 15, 2004 9:41 pm   Post subject: (No subject)

also, remember, as recneps and many other people have pointed out, always check with your Turing Reference manual first. Many question, if not the majority, depends on that F10 button and some creativity on your part.
the_short1




PostPosted: Tue Feb 24, 2004 7:56 am   Post subject: (No subject)

yea... Good job Thug

this should(hopfully) Rolling Eyes limit some in our help....

like common.... almost 10 000 posts........ thats CRZY


+3 bits
kingpin




PostPosted: Thu Jun 10, 2004 12:15 am   Post subject: (No subject)

heres a simple one i cant figure out

whats the command to end your program...

quit doen'st work... WHAT IS IT!
Paul




PostPosted: Thu Jun 10, 2004 12:25 am   Post subject: (No subject)

its
code:

return
the_short1




PostPosted: Thu Jun 10, 2004 8:19 am   Post subject: (No subject)

no.. return DOES NOT WORK



return is to end a proc prematurely

code:


proc hey
var c : int := 0
loop
c += 1
if c > 10 then
return % this will end the proc and RETURN to ur program!
end loop
end hey


Sponsor
Sponsor
Sponsor
sponsor
beard0




PostPosted: Thu Jun 10, 2004 9:41 am   Post subject: (No subject)

This will end your program:
code:
assert false
Tony




PostPosted: Thu Jun 10, 2004 11:24 am   Post subject: (No subject)

haha
asset false will crash the program Laughing

and return does work... you just need to put it in the right place
HoltSoft wrote:

A return statement terminates the procedure (or main program) in which it appears.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
the_short1




PostPosted: Thu Jun 10, 2004 2:51 pm   Post subject: (No subject)

i think by main program they mean if u put return in a turing UNIT to end it... ..


meh.. ill try that..ok... just tried it...


return does end the program prematurely! but it does not go to LAST line of code.....




try this out..

code:

var win := Window.Open ("graphics:max;max,nobuttonbar")
put "Trying to close window when 10 apears! But it WONT close return aint good for that kind of thing... :("
for a : 1..15
put a
delay (a)
if a = 10 then
return
end if
end for
Window.Close (win)


that is why i wouln't use return to end a program.... the WINDOW WONT CLOSE!

instead u can just use a boolean variable!

code:

var endp : boolean := false
var win := Window.Open ("graphics:max;max,nobuttonbar")
loop
put "close window when 10 apears!"
for a : 1..15
put a
delay (a**3)
if a = 10 then
endp := true %% instead of return
end if
exit when endp = true
end for
exit when endp = true
end loop
Window.Close (win)





as u can see..... u just make that boolean variable false...
and have exit when boleanvarname = false in all ur loopz or w/e...
Paul




PostPosted: Thu Jun 10, 2004 5:46 pm   Post subject: (No subject)

kingpin wrote:


whats the command to end your program...


Well, "return" certainly ends my program.
code:

loop
if hasch then
return
end if
end loop
put "paul"

Note it doesn't print paul Razz
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 12 Posts ]
Jump to:   


Style:  
Search: