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

Username:   Password: 
 RegisterRegister   
 Can this be simplified?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Nameless_man




PostPosted: Wed Jan 19, 2005 6:58 pm   Post subject: Can this be simplified?

Need help on simplifing. Surprised
Its supposed to be the game "concentration" where u look for the card/diagram asked.
Currently not done (no duh)
and im planning to repeat the chunk of process over few times,
gonna be like 9000 lines when its done.... (which is bad)
thx. Wink



concentration[exp].t
 Description:
concentration

Download
 Filename:  concentration[exp].t
 Filesize:  161.06 KB
 Downloaded:  141 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
OsoInsane_abh




PostPosted: Wed Jan 19, 2005 7:20 pm   Post subject: (No subject)

OH wow, i cant guess who this is...... Rolling Eyes

if i were you i would just use my orignal name and ask the question..... Idea

HINT: FILENAME = ISP2.t
cycro1234




PostPosted: Wed Jan 19, 2005 7:40 pm   Post subject: (No subject)

Holy mother of sweet Jesus that's A LOT of code!
Nameless_man




PostPosted: Wed Jan 19, 2005 7:52 pm   Post subject: (No subject)

heh
yep its a lot
but its mostly copy and pasting
hardly any typin
and yea....
heh wats ur name? i no ur in TIK afternoon....
cycro1234




PostPosted: Wed Jan 19, 2005 7:54 pm   Post subject: (No subject)

You could try reading the tutorial on arrays, coz maybe that will help. As for my name, its Cycro.
Nameless_man




PostPosted: Wed Jan 19, 2005 7:56 pm   Post subject: (No subject)

heh thx, and no not u the other guy
cycro1234




PostPosted: Wed Jan 19, 2005 8:05 pm   Post subject: (No subject)

Here's some code to simplify all those drawboxes u have. They could be all easily made using 2 for loops.

code:
for x : 1 .. 150 by 25
    for y : 1 .. 150 by 25
        drawfillbox (3+x, 3+y, 25+x, 25+y, 70)
    end for
end for


Hope it helps. 8)
OsoInsane_abh




PostPosted: Wed Jan 19, 2005 8:15 pm   Post subject: (No subject)

Dude, Dont you know its not pleasent to give out your real name in the internet...anyways my name is Abhishek
Sponsor
Sponsor
Sponsor
sponsor
Nameless_man




PostPosted: Wed Jan 19, 2005 8:23 pm   Post subject: (No subject)

bah.....
i dun understand arrays ><
wanna care to explain to me in PM cycro =P?
lmao
cycro1234




PostPosted: Wed Jan 19, 2005 8:54 pm   Post subject: (No subject)

Sure, rite after you read this tutorial made on arrays. You should check out the stickies at the top, some of them contain useful information.

http://www.compsci.ca/v2/viewtopic.php?t=366
Nameless_man




PostPosted: Wed Jan 19, 2005 9:05 pm   Post subject: (No subject)

hmmm how do i use array in my program then?
(btw i dun rly understand array..)
cycro1234




PostPosted: Wed Jan 19, 2005 9:24 pm   Post subject: (No subject)

I said you might be able to use an array. All your if statements use the variable "reply". The if statements all get a number, yet u declared reply as a string. Maybe if you declared it as an integer, things may be easier? Btw, what's your name? (For easier reference)
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: