Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

My First Code

Name: Anonymous 2006-08-04 13:23

MY FIRST CODE EVER

WUT DO YOU THINK

_________________________
// Scase.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>

using namespace std;

void playgame();
void loadgame();
void playmultiplayer();
void loser();
void WNX();
void mainmenu()
{
  int input;
 
  cout<<"1. Play game\n";
  cout<<"2. Load game\n";
  cout<<"3. Play multiplayer\n";
  cout<<"4. Exit\n";
  cout<<"5. Uninstall\n";
  cout<<"Selection: ";
  cin>> input;
  switch ( input ) {
  case 1:            // Note the colon, not a semicolon
    playgame();
    break;
  case 2:            // Note the colon, not a semicolon
    loadgame();
    break;
  case 3:            // Note the colon, not a semicolon
    playmultiplayer();
    break;
  case 4:            // Note the colon, not a semicolon
    cout<<"Thank you for playing!\n";
    break;
  case 5:
    cout<<"Uninstalling. 1...2...3...4...5 Uninstalled\n";
    break;
  default:            // Note the colon, not a semicolon
    cout<<"You're a Retard, quitting\n";
    break;
  }
  cin.get();
}
void playgame()
{
    cout<<"Loading The Game\n";
    cout<<"Loaded!\n";
    cout<<"You start out in a deep deep dark dungeon with an RCP90 in your right hand a cougar magnum in your holster. You see a door to you left and a rope leading up to a hole in the ceiling above you. What do you do?\n";
    int input4;
    cout<<"1. Walk out door.\n";
    cout<<"2. Climb Rope.\n";
    cin>> input4;
    switch ( input4 ) {
    case 1:
        cout<<"You walk out the door and get killed by a roaming Dorrito.\n";
        cout<<" \n";
        cout<<" \n";
        cout<<".........\n";
        cin.get();
        loser();
        break;
    case 2:
        cout<<"You climb up the rope - and suddenly - a huge boulder comes down and crushes your gun - the loss of your gun give you a sense of ultimate failure and you kill yourself.\n";
        cout<<" \n";
        cout<<" \n";
        cout<<"..........\n";
        cin.get();
        mainmenu();
        break;
    }
    cin.get();
}
void loadgame()
{
    cout<<"Loading Saved Game\n";
    int input3;

    cout<<"1. davidsgay.sav (10:30 PM)\n";
    cout<<"2. x23 doest know how to say his first name.sav (13:37 PM)\n";
    cout<<"3. nicksadick.sav (83485813738:01 AM)\n";
    cin>> input3;
    switch ( input3 ) {
    case 1:
        cout<<"Loaded.\n";
        break;
        mainmenu();
    case 2:
        cout<<"Loaded.\n";
        break;
        mainmenu();
    case 3:
        cout<<"Nick Is Infact - A dick.\n";
        break;
        mainmenu();
    }
    cin.get();
}
void playmultiplayer()
{
    cout<<"Connecting To Master Server\n";
    int input2;

    cout<<"1. myg0t official svr #1\n";
    cout<<"2. WNx LTK 24/7 Retard Van\n";
    cout<<"3. Official 'I HATE THAT DAMN DORRITO' Server\n";
    cin>> input2;
    switch ( input2 ) {
    case 1:
        cout<<"MOTD: myg0t h4x3d j000000!!!!\n";
        break;
    case 2:
        cout<<"MOTD: Hurrrr..... hurrrrr. hurrrrrrrrrrr.....!\n";
        cout<<"...........................\n";
        WNX();
        break;
    case 3:
        cout<<"MOTD: A Dorrito Killed You!\n";
        loser();
        break;
    }
    cin.get();
}
void loser()
{
    cout<<"You Have Done Teh Loosed!\n";
    int inputlose;

    cout<<"1. Return To Main Menu\n";
    cout<<"2. Exit\n";
    cin>> inputlose;
    switch ( inputlose ) {
    case 1:
        mainmenu();
    case 2:
        cout<<"Thank you so-a much for-a playing my game!\n";
        break;
    }
}
void WNX()
{
    cout<<"Player List\n";
    cout<<"...........................\n";
    int inputwnx1;

    cout<<"1| WNx Embercatser\n";
    cout<<"2| WNx Kalyse\n";
    cout<<"3| WNx Helios\n";
    cout<<"4| -[JS]- x23\n";
    cout<<"5| Sean Connery *excuse me*\n";
    cin>> inputwnx1;
    switch ( inputwnx1 ) {
    case 1:
        cout<<"player killed WNx Embercatser\n";
        cout<<"WNx Embercatser says AAAaargh HAAAArrrblll!!!! *explodes because he is so obese*\n";
        break;
    case 2:
        cout<<"Im a retard\n";
        WNX();
        break;
    case 3:
        cout<<"Lol I dont even know this guy\n";
        WNX();
        break;
    case 4:
        cout<<"WTF DONT KILL HIM! BANT!!!\n";
        break;
    case 5:
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
            cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
                cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        cout<<"EXCUSE ME!!!!!!!\n";
        break;
    }

}
int main()
{
 mainmenu();
}

Name: Anonymous 2006-08-04 14:49

DO NOT WANT!

Also, put the "EXCUSE ME" in a loop.

Name: Anonymous 2006-08-04 15:26

Behold!

The new LOLLERTOADS - the DO NOT WANT editin.

Name: Anonymous 2006-08-04 16:17

Jesus Christ, thats a lot of switches.  You might want to use if-else if-else instead, or you could end up taking down the phone system.

Name: Anonymous 2009-01-14 14:25

IHBTE

Name: Anonymous 2010-06-26 9:59

ur gay

Name: Anonymous 2010-06-26 11:33

So, i wonder if OP ever managed to find out what a loop is.

Name: Anonymous 2010-06-28 10:55

beware the army of 12 year old autistics

Name: Sgt.Kabu錮�kiman덛栧 2012-05-28 19:30

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List