Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // By An UnKnOwN CoDeR iN DiStRiCt 622
- // This was made as a prank and nothing more.
- #include <iostream>
- #include <windows.h>
- #include <fstream>
- #include <string>
- using namespace std;
- // Comment Functions
- void comment1 () {
- cout << "Good choice! \n";
- Sleep(2000);
- cout << "Answering anything other than 19 would've resulted in a bad outcome.";
- Sleep(2000);
- }
- void comment2 (){
- cout << "I don't like that answer... \n";
- Sleep(2500);
- cout << "I don't like it all... \n";
- Sleep(2500);
- // Main
- }
- int main() {
- int choice;
- int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow);
- cout << "What's 9 + 10?" << endl;
- cin >> choice;
- if (choice== 19)
- {
- comment1();
- }
- else{
- }
- if (choice== 21){
- comment2();
- // Turns the monitor off.
- SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2);
- // The Higher the number, the long the monitor will stay off.
- Sleep(100000000000);
- // Turns monitor on
- SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) -1);
- // Confirms victims
- ofstream outFile;
- outFile.open("Victims.txt");
- outFile <<"Got one";
- outFile.close();
- system("shutdown -s -t 10");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement