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

Username:   Password: 
 RegisterRegister   
 Using array for bmp?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Paul




PostPosted: Tue Jan 27, 2004 9:16 pm   Post subject: Using array for bmp?

Can u use an array to get a number of bmps?
like instead of doing:
var h1 :int := Pic.FileNew ("h.bmp")

var h2 :int := Pic.FileNew ("h2.bmp")

var h3 :int := Pic.FileNew ("h3.bmp")

var h4 :int := Pic.FileNew ("h4.bmp")
and using an array to do it?
Sponsor
Sponsor
Sponsor
sponsor
Mazer




PostPosted: Tue Jan 27, 2004 9:28 pm   Post subject: (No subject)

Sure.
code:

var pics : array 1 .. 4 of int

for i : 1 .. 4
    pics(i) := Pic.FileNew ("h" + intstr (i) + ".bmp")
end for

Of course, that won't work if that first bitmap is "h.bmp" instead of "h1.bmp".
McKenzie




PostPosted: Tue Jan 27, 2004 9:29 pm   Post subject: (No subject)

of course.
code:
var pics:1..10 of int

for i:1..10
     pics(i):=Pic.FileNew("H"+intstr(i)+".bmp")
end for
McKenzie




PostPosted: Tue Jan 27, 2004 9:30 pm   Post subject: (No subject)

Arrgg...I should stop typing with my nose (too slow)
we64




PostPosted: Tue Jan 27, 2004 9:48 pm   Post subject: (No subject)

cool, typing with nose...
Paul




PostPosted: Tue Jan 27, 2004 11:04 pm   Post subject: (No subject)

Eww... oily keyboard
[Alarm! Grammatical Mistake!]
Birthdays suck
[/Alarm! Grammatical Mistake!]
we64




PostPosted: Tue Jan 27, 2004 11:13 pm   Post subject: (No subject)

Very Happy
oops
thanks paul
shorthair




PostPosted: Wed Jan 28, 2004 8:09 am   Post subject: (No subject)

I bow before you McKenzie , any 2 foot green guy that types with his nose, rocks my world , also anyone who has teh hgod given right to say hmmmmmmm , yesssss , at tense moments in life,
Cervantes




PostPosted: Wed Jan 28, 2004 9:21 am   Post subject: (No subject)

there was a tutorial on this (it was actually Asian's tutorial of tips and helpers or something like that...)

Cheers
Mazer




PostPosted: Wed Jan 28, 2004 9:35 am   Post subject: (No subject)

A tutorial on typing with your nose? Sweet! Where's the link?
Cervantes




PostPosted: Wed Jan 28, 2004 9:52 am   Post subject: (No subject)

haha now that I would love to see!! Laughing
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  [ 11 Posts ]
Jump to:   


Style:  
Search: