-
Tricks On Sybblings
im sure we have always wanted to play a trick on someone and scince im new to c++ i wanted to play a trick on my 13 year old sister (im 12 so she can be very annoying) so i wrote this code and would like anyone to check it for errors
#include <iostream.h>
void main( void )
{
int age;
cout << "What Is Your Age ";
cin >>> age;
if (age > 13) ;
cout << "You Fat Pig";
else;
if (age < 13) ;
cout << "You Fat Pig";
else;
if (age = 13) ;
cout << "You big Fat Pig";
}
all help is welcome and if neone has any other trick codes or game codes could you post them
Thank you,
Mike
-
I use DevC++, so i put in the conio header file and getch() to keep the DOS window open...
For added pleasure try putting some emphasis on the statements like "YOU BIG, HUGE, ABOMINABLE PIG!!!!!"
#include <iostream.h>
#include <conio.c>
main()
{
int age;
cout << "What Is Your Age ";
cin >> age;
if (age > 13)
cout << "You Fat Pig";
else
if (age < 13)
cout << "You Fat Pig";
else
if (age == 13)
cout << "You big Fat Pig";
getch();
return 0;
}
-