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

Username:   Password: 
 RegisterRegister   
 blips
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
ecookman




PostPosted: Sun Dec 14, 2008 2:22 pm   Post subject: blips

since i can't get my countdown to Christmas to work and nobody is helping (i tried ruby and i couldn't get it to work.. i ma talking about the turing one)
i made this

Turing:

var a : int
var b : int
loop
randint (a,100,20000)
randint (b,1,100)
sound (a,b)
end loop


go nuts
Sponsor
Sponsor
Sponsor
sponsor
syntax_error




PostPosted: Sun Dec 14, 2008 2:23 pm   Post subject: RE:blips

The point being?
ecookman




PostPosted: Sun Dec 14, 2008 2:39 pm   Post subject: RE:blips

meeh something i made that people might like...and out of my sadness of the counter failure
dc116




PostPosted: Sun Dec 14, 2008 6:32 pm   Post subject: RE:blips

I don't understand the purpose of your program. Is it for that game of yours?
ecookman




PostPosted: Sun Dec 14, 2008 7:22 pm   Post subject: RE:blips

lol no i just found out how to use the sound function and thought hmmm what happens if I put a loop into it along with a random sound...i thought it was cool
Parker




PostPosted: Mon Dec 15, 2008 8:18 am   Post subject: RE:blips

Kind of interesting I guess..but about the countdown, many people have tried to help Sad
SNIPERDUDE




PostPosted: Mon Dec 15, 2008 12:54 pm   Post subject: RE:blips

for the counter use mod for helping with the math and something under Time.~ for getting the current time and date. Just pseudo code to get an idea.

just remember simple time conversions:

24 h = 1d
60 m = 1h
60 s = 1m
1000 ms = 1s
ecookman




PostPosted: Mon Dec 15, 2008 4:33 pm   Post subject: RE:blips

errm thanks....wrong topic lol


and what is pseudo
Sponsor
Sponsor
Sponsor
sponsor
SNIPERDUDE




PostPosted: Mon Dec 15, 2008 9:55 pm   Post subject: RE:blips

ummm, logic code, not specific to any language. Code made to be read by a human, not by a programming language.

Ex:
code:

if this happens
    do this
ecookman




PostPosted: Mon Dec 15, 2008 9:57 pm   Post subject: RE:blips

aah thanks
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 10 Posts ]
Jump to:   


Style:  
Search: