Created
April 29, 2013 22:21
-
-
Save daryo918/5485274 to your computer and use it in GitHub Desktop.
broma en c++
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <mmsystem.h> | |
#include <iostream> | |
int main(int argc, char *argv[]) | |
{ | |
int x; | |
int y; | |
mciSendString("play na.wav",0,0,0); | |
MessageBox(0,"su computador esta poseido att:el diablo","error de posesion",MB_HELP); | |
while(true) | |
{ | |
x=(rand() % 1000); | |
y=(rand() % 800); | |
SetCursorPos(x,y); | |
mciSendString("set Cdaudio door open",0,0,0); | |
Sleep(4000); | |
mciSendString("set Cdaudio door close",0,0,0); | |
} | |
return EXIT_SUCCESS; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment