Jump to content

The last poster wins


TheCalliton

Recommended Posts

#include <stdio.h>

#include <stdlib.h>

 

int main(void)

{

 

int i=0;

 

gets(s);

sscanf(s, "%d", &i)

if(i=1)

{

printf("MonsterHunterMaster wins!");

}

else

{

printf("No matter what number you type in, MonsterHunterMaster always wins!!")

}

 

return 0;

system ("PAUSE");

 

}

Link to comment
Share on other sites

Into MHM's little program there: "1/0"

 

Error! MHM is losing! 1 is 0, 0 is 1... *computer explodes*

 

New computer delivered. Has a mysterious silver Z painted on it.

 

#include<iostream>

using namespace std;

 

bool zprospero_wins = 1;

 

void main() {

 

do{

 

assert(zprospero_wins);

 

}while(zprospero_wins == 1)

 

;above is infinite loop so it will never reach the below

;and if it somehow does your computer faces the same

;fate as MHM's

zprospero_wins = 1/0;

 

}

 

http://i816.photobucket.com/albums/zz84/zprospero/zpro.gif

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...