Select language
Search the Site
Ceebot / Dauphin Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Schoolbooks-->Branches-->Insect attack (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Schoolbooks-->Branches-->Insect attack
#26
wJack (Visitor)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Schoolbooks-->Branches-->Insect attack 15 Years, 5 Months ago Karma: 0  
Hi, i'm italian boy and i ask you any help for the level:
Schoolbooks-->Branches-->Insect attack...

I don't know how can i do this exercise...
I need help for the istruction switch what i can't understand what put in:
switch (-->/*variabiles*/<--){
....
}and i've another question, without switch my program is:

-----Code-----
extern void object::Apportieren1()
{
while(true){
bool m, a, d, w, s;
string casem="m", casea="a", cased="d", casew="w", cases="s";
if(keypushed(casem)){
fire(0.5);
}
else{
if(keypushed(casea)){
turn(10);
}
else{
if(keypushed(cased)){
turn(-10);
}
else{
if(keypushed(casew)){
aim(20);
}
else{
if(keypushed(cases)){
aim(-20);
}
}
}
}
}
}
}
----End code----

Please help me and answer my doubts
Thanks ...
Giacomo
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/10/30 16:32 By admin.
  The administrator has disabled public write access.
      Topics Author Date
    thread link
Schoolbooks-->Branches-->Insect attack
wJack 2008/10/30 15:37
    thread link
thread linkthread link Re:Schoolbooks-->Branches-->Insect attack
admin 2008/10/30 16:39
    emo
thread linkthread link Re:Schoolbooks-->Branches-->Insect attack
wJack 2008/10/30 19:43
    thread link
thread linkthread linkthread link Re:Schoolbooks-->Branches-->Insect attack
admin 2008/10/30 21:20
    thread link
thread linkthread linkthread linkthread link Re:Schoolbooks-->Branches-->Insect attack
wJack 2008/10/30 21:49
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop