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

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




PostPosted: Tue Apr 17, 2012 8:17 am   Post subject: Procedure Rotate Help

Write and test a procedure subprogram called rotate which
will rotate the integer values of three parameters. If the
parameters A, B, and C originally had values 1 2 3 before the
operation of the procedure, then afterwards the values would
be 3 1 2.

I based the rotate program on this one:

procedure swap (x, y : string)
put x
put y
end swap
swap ("Sweet" , "Cake")

but when I try to do the rotate one it doesn't work! Can someone please explain to me what I am doing wrong?
procedure rotate (a, b, c : string)
put a
put b
put c
end rotate
rotate ("3", "4", "1")
Sponsor
Sponsor
Sponsor
sponsor
Raknarg




PostPosted: Tue Apr 17, 2012 9:54 am   Post subject: RE:Procedure Rotate Help

Look at yuor old topic, it goes over the exact same thing.

And stop posting in submissions
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  [ 2 Posts ]
Jump to:   


Style:  
Search: