Thread: Tricks On Sybblings

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    32

    Thumbs up 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

  2. #2
    Registered User ProgrammingDlux's Avatar
    Join Date
    Jan 2002
    Posts
    86
    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;
    }

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    32
    thx

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. about some tricks in Visual Studio debug
    By George2 in forum Tech Board
    Replies: 1
    Last Post: 09-15-2006, 05:34 AM
  2. Beginning Game Programming Type Books
    By bumfluff in forum Game Programming
    Replies: 36
    Last Post: 09-13-2006, 04:15 PM
  3. Amazing Pool Tricks
    By hk_mp5kpdw in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 05-07-2005, 07:50 PM
  4. pls post here tricks that you know of in C/C++, thanks
    By mickey in forum C++ Programming
    Replies: 55
    Last Post: 06-12-2003, 04:28 PM
  5. Tricks of the windows game programming gurus
    By Nutshell in forum Game Programming
    Replies: 0
    Last Post: 04-24-2003, 11:37 PM