Friday, July 31, 2009

A little help with C++?

cin %26gt;%26gt; menu;


if ( menu == 1) {


while (y != 0) {


system("cls");


cout %26lt;%26lt; "Welcome to the CALCULATOR OF DEATH" %26lt;%26lt; endl %26lt;%26lt; "Enter 2 numbers to add" %26lt;%26lt; endl;


cin %26gt;%26gt; haha;


cin %26gt;%26gt; haha2;


cout %26lt;%26lt; haha + haha2 %26lt;%26lt; endl;


system("PAUSE");


cout %26lt;%26lt; "Again? (Enter 0 to Exit)" %26lt;%26lt; endl;


cin %26gt;%26gt; y;


system("cls");


}


}





if (menu == 2) {


cout %26lt;%26lt; "Editor???" %26lt;%26lt; endl %26lt;%26lt; "Virus Found Shutting Down!!" %26lt;%26lt; endl;


system("pause");


for (double z = 0; z %26lt; 999; z++) {


cout %26lt;%26lt; "OWNED" %26lt;%26lt; endl;


}


}


}


system("PAUSE"); and the rest i left out the start and finish because i only get 100 chars but i want it to say shutting down in 10


9


8


7


6


5


4


3


2


1


do you get what i am saying

A little help with C++?
change the loop to:


for (int z=999;z%26gt;=0;z--) {


cout %26lt;%26lt; z %26lt;%26lt;endl;


}


that should print the numbers out in reverse order (i hope!)
Reply:cout %26lt;%26lt; "Virus Alert: Shutting down" %26lt;%26lt; endl;





for(int down=9; down%26gt;0; down++)


{





for(double z=0;z%26lt;999;z++){}





cout %26lt;%26lt; down %26lt;%26lt; endl;


}


cout %26lt;%26lt; "\n\n Critical Windows Files Deleted!! Shut Down Failed..";

nobile

No comments:

Post a Comment