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

Username:   Password: 
 RegisterRegister   
 more procedure problems
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Mr. T




PostPosted: Sun Jan 30, 2005 6:58 pm   Post subject: more procedure problems

how would u go about editing part of a procdeure without havign to rewrite the whole procedure?
Sponsor
Sponsor
Sponsor
sponsor
person




PostPosted: Sun Jan 30, 2005 7:02 pm   Post subject: (No subject)

u can do this

procedure a
% part u want to change
end a
procedure b
% changed
end b
procedure c
% main procedure
if something then
a
else
b
end if
end c
basketball4ever




PostPosted: Sun Jan 30, 2005 7:09 pm   Post subject: (No subject)

depends what you want. Post a piece of code, and i'll show you.
you can use paramter pass. or something just show what u need helped on in an example
Mr. T




PostPosted: Sun Jan 30, 2005 7:24 pm   Post subject: (No subject)

basketball4ever wrote:
depends what you want. Post a piece of code, and i'll show you.
you can use paramter pass. or something just show what u need helped on in an example


%declaration of variable section
var font1 : int
font1 := Font.New ("sans serif:16:bold")
%%%%%%%%%%%%%%%%%%%%%%
procedure animation1
var box :int :=0
var coloriginal :int :=0
loop
colour (coloriginal)
coloriginal+=1
box+=10
colourback (7)
cls
Font.Draw ("Animation #1", 155, 120, font1, coloriginal)
drawmapleleaf (0+box, 0+box, maxx-box, maxy-box, 0)
delay (75)
exit when box = 700
end loop
end animation1

^^^^
i want to make it so that i can chande Animation #1 to Animation #2 and so on... every time i use the procedure.
basketball4ever




PostPosted: Sun Jan 30, 2005 8:03 pm   Post subject: (No subject)

Pwned wrote:
basketball4ever wrote:
depends what you want. Post a piece of code, and i'll show you.
you can use paramter pass. or something just show what u need helped on in an example


%declaration of variable section
var font1 : int
font1 := Font.New ("sans serif:16:bold")
%%%%%%%%%%%%%%%%%%%%%%
procedure animation1
var box :int :=0
var coloriginal :int :=0
loop
colour (coloriginal)
coloriginal+=1
box+=10
colourback (7)
cls
Font.Draw ("Animation #1", 155, 120, font1, coloriginal)
drawmapleleaf (0+box, 0+box, maxx-box, maxy-box, 0)
delay (75)
exit when box = 700
end loop
end animation1

^^^^
i want to make it so that i can chande Animation #1 to Animation #2 and so on... every time i use the procedure.



can u explain more clearly.. i still don't understand... so everytime animation1 runs... u want animation 2 to run afterwards? i dont get what you're trying to say
Mr. T




PostPosted: Sun Jan 30, 2005 8:39 pm   Post subject: (No subject)

nvm. i got my frined to help me. thnx anyawys
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  [ 6 Posts ]
Jump to:   


Style:  
Search: