Skip to content

Instantly share code, notes, and snippets.

@daryo918
Created April 29, 2013 22:21
Show Gist options
  • Save daryo918/5485274 to your computer and use it in GitHub Desktop.
Save daryo918/5485274 to your computer and use it in GitHub Desktop.
broma en c++
#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