Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Last one to post wins

This is part 1 of the Last one to post wins discussion.

Featured Replies

Night Death.

 

I'm off for sleep related reasons also.

17175_s.gif

[spoiler=Quotes]

Goddammit Monk, stop being so full of win.

I am Monk's [bleep]

 

  • Replies 181k
  • Views 6.2m
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • The rules are simple!   If when you post on this thread, and the thread dies for one week; (and/or 24 hours, I'm not sure if it CAN be inactive for more than a few days with Dax spamming the hell out

  • Pinkbullet3
    Pinkbullet3

    .

  • Goonstalf
    Goonstalf

Night.

 

u should un-block me...

2pzzjb9.jpg

106px-National_Defense_Service_Medal_ribbon.svg.png106px-Navy_Rifle_Marksmanship_Ribbon.svg.png120px-USN_Expert_Pistol_Shot_Ribbon.png

God dammit Seany, STOP SHARING MY MIND

" I believe in something greater than myself. A better world. A world without sin. I'm not going to live there. There's no place for me there... I'm a monster.What I do is evil. I have no illusions about it, but it must be done."

No.

 

Night.

"Let your anger be as a monkey in a piñata... hiding amongst the candy... hoping the kids don't break through with the stick." - Master Tang

Yes.

 

G'Night.

2pzzjb9.jpg

106px-National_Defense_Service_Medal_ribbon.svg.png106px-Navy_Rifle_Marksmanship_Ribbon.svg.png120px-USN_Expert_Pistol_Shot_Ribbon.png

God dammit Seany, STOP SHARING MY MIND

" I believe in something greater than myself. A better world. A world without sin. I'm not going to live there. There's no place for me there... I'm a monster.What I do is evil. I have no illusions about it, but it must be done."

[hide=code]

using namespace std;


int main()
{
srand(time(0));
char start;
bool play = true;

do
{
	menuScreen(); // print out the opening menu
	bool menu = true;

	do
	{
		cin >> start; // get player's choice of what to do

		///////////////////////////////////// if they want to load a game
		if (start == 'L' || start == 'l')
		{
			char tryagain = 'y'; // in case the file does not exist
			do
			{
				//get the name of the saved character
				string fname;
				cout << "What is the name of the saved character? ";
				cin >> fname;

				//load the game; if it fails ask if they'd like to try again
				if(bin_loadGame(fname))
				{
					menu = false;
					break;
				}
				else
				{
					cout << "Either the file does not exist or could not be opened.\n";
					cout << "Would you like to try to load a different character? (y/n) ";
					cin >> tryagain;
				}
			} while(tryagain == 'y');

			if(tryagain != 'y') // if the load is unsuccessful and they don't want to try again,
			{					// ask them to choose to quit, start a new game or load a game again
				cout << "Enter another choice: ";
			}
		}


		///////////////////////////////////// if they want to start a new game
		else if (start == 'N' || start == 'n')
		{
			createMap(); // generate the map

			//get the name they want to give their character
			cout << "What would you like your name to be? (do not use spaces) ";
			string name;
			cin >> name;
			player.set_name(name);

			//print the instructions/rules of the game
			printRules();
			menu = false;
		}

		///////////////////////////////////// if they want to leave without doing anything
		else if (start == 'Q' || start == 'q')
		{
			cout << "Good-bye :'(" << endl;
			return 0;
		}

		///////////////////////////////////// if they do not make a valid choice, exit the game
		else
		{
			cout << "That wasn't one of the 3 options... dummy... doesn't even know how to read..." << endl;
			return 0;
		}
	} while(menu);

	RefreshMap(); // print the map for the first time

	//Is used to take input from the keyboard. The code in this section is partially taken from http://www.dreamincode.net/forums/showtopic29209.htm and http://msdn.microsoft.com/en-us/library/ms685035%28VS.85%29.aspx
	HANDLE hStdin; 
    DWORD cNumRead, fdwMode, fdwSaveOldMode, i; 
    INPUT_RECORD irInBuf[128]; 
    int counter=0;

    // Get the standard input handle. 

    hStdin = GetStdHandle(STD_INPUT_HANDLE); 
    if (hStdin == INVALID_HANDLE_VALUE) 
        ErrorExit("GetStdHandle"); 

    // Save the current input mode, to be restored on exit. 

    if (! GetConsoleMode(hStdin, &fdwSaveOldMode) ) 
        ErrorExit("GetConsoleMode"); 

    // Enable the window and mouse input events. 

    fdwMode = ENABLE_WINDOW_INPUT | ENABLE_MOUSE_INPUT; 
    if (! SetConsoleMode(hStdin, fdwMode) ) 
        ErrorExit("SetConsoleMode"); 


	while(!dead) // while the player is still alive, continue reading keyboard input
	{
		if (! ReadConsoleInput(
				hStdin,      // input buffer handle
				irInBuf,     // buffer to read into
				128,         // size of read buffer
				&cNumRead) ) // number of records read
			ErrorExit("ReadConsoleInput");

		// Dispatch the events to the appropriate handler.
		for (i = 0; i < cNumRead; i++)
		{
			switch(irInBuf[i].EventType)
			{
			case KEY_EVENT: // keyboard input
					KeyEventProc(irInBuf[i].Event.KeyEvent);
					break; 
			}
		}
	}

	//once they die, ask if they want to play again
	cout << "Do you want to play again? (y/n) ";
	cin >> start;

	//if they do want to play again
	if (start == 'y')
	{
		play = true;  // make sure game will go through another iteration
		dead = false; // reset the dead variable so that they don't die after one move
		resetPlayer();
		continue;	  // restart the game
	} else {
		play = false; // make sure the game will not go through another iteration
		cout << "Good-Bye. :'(\n"; // say good-bye
		break;		  // break out of the while loop
	}
} while(play);
return 0;
}

[/hide]

 

I'ma go ahead and assume this is some C language... I'm also going to assume you forgot to copy the first (several?) lines of code :wall:

WHAR BE YOUR LIBRARIES/HEADER FILES/WHATEVER THEY'RE CALLED???

Unless there is some way to get around all that #include <walrus> stuff... If this is the case, you will learn it to me.

He said it was a part of the code. >.>

17175_s.gif

[spoiler=Quotes]

Goddammit Monk, stop being so full of win.

I am Monk's [bleep]

 

He said it was a part of the code. >.>

What I'm talking about would literally have been the line before what he posted... Other than that, it is a complete program.

Gary Coleman is dead.

I'm an INTJ.

 

 

 

Wait...Cynic...

 

Are you a girl?

Gary Coleman is dead.

As is Michael Jackson...

Every1 keeps saying he's dead I don't even know who Gary Coleman was.

2pzzjb9.jpg

106px-National_Defense_Service_Medal_ribbon.svg.png106px-Navy_Rifle_Marksmanship_Ribbon.svg.png120px-USN_Expert_Pistol_Shot_Ribbon.png

God dammit Seany, STOP SHARING MY MIND

" I believe in something greater than myself. A better world. A world without sin. I'm not going to live there. There's no place for me there... I'm a monster.What I do is evil. I have no illusions about it, but it must be done."

Every1 keeps saying he's dead I don't even know who Gary Coleman was.

Who is Gary Coleman?!?!?!?!ragepuncuation?!?!?!?!

 

Gary Coleman is dead.

What i wanan do is when I die pay a bunch of news agencies to say , OMG He's dead! and every1 will be like, did u hear (321ownage) is dead?! and only like 5 people will actually be like, Who the hell is (321ownage). Because I don't think my name will ever be commonly known.

2pzzjb9.jpg

106px-National_Defense_Service_Medal_ribbon.svg.png106px-Navy_Rifle_Marksmanship_Ribbon.svg.png120px-USN_Expert_Pistol_Shot_Ribbon.png

God dammit Seany, STOP SHARING MY MIND

" I believe in something greater than myself. A better world. A world without sin. I'm not going to live there. There's no place for me there... I'm a monster.What I do is evil. I have no illusions about it, but it must be done."

Suicide bombing an important political building is an easy way to fame...

True... maybe congress. No kids, no innocents, big symbol. I love America but I hate the people who claim to be it's leaders, I think they stopped caring about what the people wanted a long time ago.

2pzzjb9.jpg

106px-National_Defense_Service_Medal_ribbon.svg.png106px-Navy_Rifle_Marksmanship_Ribbon.svg.png120px-USN_Expert_Pistol_Shot_Ribbon.png

God dammit Seany, STOP SHARING MY MIND

" I believe in something greater than myself. A better world. A world without sin. I'm not going to live there. There's no place for me there... I'm a monster.What I do is evil. I have no illusions about it, but it must be done."

What do you mean "claim to be it's leaders"? :/ I'm pretty sure they are...

My definition of a leader is someone who is interested in the success of their group and actively works to secure their goals. IMO congresspeople these days only care about their own re-election. For instance John Murtha, before he died, called his own constituents a bunch of Racist, gun-toting bible thumping rednecks.

 

But alas let us not discuss politics too heavily in a spam topic.

2pzzjb9.jpg

106px-National_Defense_Service_Medal_ribbon.svg.png106px-Navy_Rifle_Marksmanship_Ribbon.svg.png120px-USN_Expert_Pistol_Shot_Ribbon.png

God dammit Seany, STOP SHARING MY MIND

" I believe in something greater than myself. A better world. A world without sin. I'm not going to live there. There's no place for me there... I'm a monster.What I do is evil. I have no illusions about it, but it must be done."

For instance John Murtha, before he died, called his own constituents a bunch of Racist, gun-toting bible thumping rednecks.

At least he's not a liar like most politicians...

For instance John Murtha, before he died, called his own constituents a bunch of Racist, gun-toting bible thumping rednecks.

At least he's not a liar like most politicians...

Just a quick joke. No y John Murtha died?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Because he was full of [cabbage]! (He actually died because they nicked his gallbladder or something during surgery so the joke is true)

2pzzjb9.jpg

106px-National_Defense_Service_Medal_ribbon.svg.png106px-Navy_Rifle_Marksmanship_Ribbon.svg.png120px-USN_Expert_Pistol_Shot_Ribbon.png

God dammit Seany, STOP SHARING MY MIND

" I believe in something greater than myself. A better world. A world without sin. I'm not going to live there. There's no place for me there... I'm a monster.What I do is evil. I have no illusions about it, but it must be done."

[hide=code]

using namespace std;


int main()
{
srand(time(0));
char start;
bool play = true;

do
{
	menuScreen(); // print out the opening menu
	bool menu = true;

	do
	{
		cin >> start; // get player's choice of what to do

		///////////////////////////////////// if they want to load a game
		if (start == 'L' || start == 'l')
		{
			char tryagain = 'y'; // in case the file does not exist
			do
			{
				//get the name of the saved character
				string fname;
				cout << "What is the name of the saved character? ";
				cin >> fname;

				//load the game; if it fails ask if they'd like to try again
				if(bin_loadGame(fname))
				{
					menu = false;
					break;
				}
				else
				{
					cout << "Either the file does not exist or could not be opened.\n";
					cout << "Would you like to try to load a different character? (y/n) ";
					cin >> tryagain;
				}
			} while(tryagain == 'y');

			if(tryagain != 'y') // if the load is unsuccessful and they don't want to try again,
			{					// ask them to choose to quit, start a new game or load a game again
				cout << "Enter another choice: ";
			}
		}


		///////////////////////////////////// if they want to start a new game
		else if (start == 'N' || start == 'n')
		{
			createMap(); // generate the map

			//get the name they want to give their character
			cout << "What would you like your name to be? (do not use spaces) ";
			string name;
			cin >> name;
			player.set_name(name);

			//print the instructions/rules of the game
			printRules();
			menu = false;
		}

		///////////////////////////////////// if they want to leave without doing anything
		else if (start == 'Q' || start == 'q')
		{
			cout << "Good-bye :'(" << endl;
			return 0;
		}

		///////////////////////////////////// if they do not make a valid choice, exit the game
		else
		{
			cout << "That wasn't one of the 3 options... dummy... doesn't even know how to read..." << endl;
			return 0;
		}
	} while(menu);

	RefreshMap(); // print the map for the first time

	//Is used to take input from the keyboard. The code in this section is partially taken from http://www.dreamincode.net/forums/showtopic29209.htm and http://msdn.microsoft.com/en-us/library/ms685035%28VS.85%29.aspx
	HANDLE hStdin; 
    DWORD cNumRead, fdwMode, fdwSaveOldMode, i; 
    INPUT_RECORD irInBuf[128]; 
    int counter=0;

    // Get the standard input handle. 

    hStdin = GetStdHandle(STD_INPUT_HANDLE); 
    if (hStdin == INVALID_HANDLE_VALUE) 
        ErrorExit("GetStdHandle"); 

    // Save the current input mode, to be restored on exit. 

    if (! GetConsoleMode(hStdin, &fdwSaveOldMode) ) 
        ErrorExit("GetConsoleMode"); 

    // Enable the window and mouse input events. 

    fdwMode = ENABLE_WINDOW_INPUT | ENABLE_MOUSE_INPUT; 
    if (! SetConsoleMode(hStdin, fdwMode) ) 
        ErrorExit("SetConsoleMode"); 


	while(!dead) // while the player is still alive, continue reading keyboard input
	{
		if (! ReadConsoleInput(
				hStdin,      // input buffer handle
				irInBuf,     // buffer to read into
				128,         // size of read buffer
				&cNumRead) ) // number of records read
			ErrorExit("ReadConsoleInput");

		// Dispatch the events to the appropriate handler.
		for (i = 0; i < cNumRead; i++)
		{
			switch(irInBuf[i].EventType)
			{
			case KEY_EVENT: // keyboard input
					KeyEventProc(irInBuf[i].Event.KeyEvent);
					break; 
			}
		}
	}

	//once they die, ask if they want to play again
	cout << "Do you want to play again? (y/n) ";
	cin >> start;

	//if they do want to play again
	if (start == 'y')
	{
		play = true;  // make sure game will go through another iteration
		dead = false; // reset the dead variable so that they don't die after one move
		resetPlayer();
		continue;	  // restart the game
	} else {
		play = false; // make sure the game will not go through another iteration
		cout << "Good-Bye. :'(\n"; // say good-bye
		break;		  // break out of the while loop
	}
} while(play);
return 0;
}

[/hide]

 

I'ma go ahead and assume this is some C language... I'm also going to assume you forgot to copy the first (several?) lines of code :wall:

WHAR BE YOUR LIBRARIES/HEADER FILES/WHATEVER THEY'RE CALLED???

Unless there is some way to get around all that #include <walrus> stuff... If this is the case, you will learn it to me.

It's C++ and I don't know why I didn't put that line in. There's only one include, though.... It's a header file specifically for include statements just to make the code a little prettier.

 

If you're curious, here's what's in my includes.h header file:

#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <iomanip>
#include <cstdlib>
#include <ctime>
#include <windows.h>		//used for getting inputs
#include "Classes.h"		// holds all the class definitions
#include "globals.h"		// holds all the global variable declarations
#include "prototypes.h"
#include "startProgram.h"	// menu function and creates the map
//#include "file_io.h"		// handles regular file I/O - not in use any more
#include "bin_file_io.h"	// handles binary file I/O
#include "friendly.h"		// handles friendly character creation and whatnot
#include "fighting.h"		// handles enemy creation and fighting
#include "bosses.h"			// handles boss creation and fighting
#include "movement.h"		// handles movement and refreshing the map

 

It'd be even longer if I followed convention and had two files for each of my 6 classes (one for the definition, one for the definitions of the member functions), but until I start needing an extraordinary number of classes, each with a crapload of member functions, I think I'll pass on that.

> SELECT * FROM users WHERE clue > 0;

0 rows returned

There's no place like 127.0.0.1

There are only 10 types of people

in this world: those who understand

binary and those who don't.

This statement is false.

$DO || ! $DO ; try

try: command not found

Ok lets get off politics.

 

 

 

Idk y but i got the Indiana Jones theme stuck in my head.

2pzzjb9.jpg

106px-National_Defense_Service_Medal_ribbon.svg.png106px-Navy_Rifle_Marksmanship_Ribbon.svg.png120px-USN_Expert_Pistol_Shot_Ribbon.png

God dammit Seany, STOP SHARING MY MIND

" I believe in something greater than myself. A better world. A world without sin. I'm not going to live there. There's no place for me there... I'm a monster.What I do is evil. I have no illusions about it, but it must be done."

[hide=code]

using namespace std;


int main()
{
srand(time(0));
char start;
bool play = true;

do
{
	menuScreen(); // print out the opening menu
	bool menu = true;

	do
	{
		cin >> start; // get player's choice of what to do

		///////////////////////////////////// if they want to load a game
		if (start == 'L' || start == 'l')
		{
			char tryagain = 'y'; // in case the file does not exist
			do
			{
				//get the name of the saved character
				string fname;
				cout << "What is the name of the saved character? ";
				cin >> fname;

				//load the game; if it fails ask if they'd like to try again
				if(bin_loadGame(fname))
				{
					menu = false;
					break;
				}
				else
				{
					cout << "Either the file does not exist or could not be opened.\n";
					cout << "Would you like to try to load a different character? (y/n) ";
					cin >> tryagain;
				}
			} while(tryagain == 'y');

			if(tryagain != 'y') // if the load is unsuccessful and they don't want to try again,
			{					// ask them to choose to quit, start a new game or load a game again
				cout << "Enter another choice: ";
			}
		}


		///////////////////////////////////// if they want to start a new game
		else if (start == 'N' || start == 'n')
		{
			createMap(); // generate the map

			//get the name they want to give their character
			cout << "What would you like your name to be? (do not use spaces) ";
			string name;
			cin >> name;
			player.set_name(name);

			//print the instructions/rules of the game
			printRules();
			menu = false;
		}

		///////////////////////////////////// if they want to leave without doing anything
		else if (start == 'Q' || start == 'q')
		{
			cout << "Good-bye :'(" << endl;
			return 0;
		}

		///////////////////////////////////// if they do not make a valid choice, exit the game
		else
		{
			cout << "That wasn't one of the 3 options... dummy... doesn't even know how to read..." << endl;
			return 0;
		}
	} while(menu);

	RefreshMap(); // print the map for the first time

	//Is used to take input from the keyboard. The code in this section is partially taken from http://www.dreamincode.net/forums/showtopic29209.htm and http://msdn.microsoft.com/en-us/library/ms685035%28VS.85%29.aspx
	HANDLE hStdin; 
    DWORD cNumRead, fdwMode, fdwSaveOldMode, i; 
    INPUT_RECORD irInBuf[128]; 
    int counter=0;

    // Get the standard input handle. 

    hStdin = GetStdHandle(STD_INPUT_HANDLE); 
    if (hStdin == INVALID_HANDLE_VALUE) 
        ErrorExit("GetStdHandle"); 

    // Save the current input mode, to be restored on exit. 

    if (! GetConsoleMode(hStdin, &fdwSaveOldMode) ) 
        ErrorExit("GetConsoleMode"); 

    // Enable the window and mouse input events. 

    fdwMode = ENABLE_WINDOW_INPUT | ENABLE_MOUSE_INPUT; 
    if (! SetConsoleMode(hStdin, fdwMode) ) 
        ErrorExit("SetConsoleMode"); 


	while(!dead) // while the player is still alive, continue reading keyboard input
	{
		if (! ReadConsoleInput(
				hStdin,      // input buffer handle
				irInBuf,     // buffer to read into
				128,         // size of read buffer
				&cNumRead) ) // number of records read
			ErrorExit("ReadConsoleInput");

		// Dispatch the events to the appropriate handler.
		for (i = 0; i < cNumRead; i++)
		{
			switch(irInBuf[i].EventType)
			{
			case KEY_EVENT: // keyboard input
					KeyEventProc(irInBuf[i].Event.KeyEvent);
					break; 
			}
		}
	}

	//once they die, ask if they want to play again
	cout << "Do you want to play again? (y/n) ";
	cin >> start;

	//if they do want to play again
	if (start == 'y')
	{
		play = true;  // make sure game will go through another iteration
		dead = false; // reset the dead variable so that they don't die after one move
		resetPlayer();
		continue;	  // restart the game
	} else {
		play = false; // make sure the game will not go through another iteration
		cout << "Good-Bye. :'(\n"; // say good-bye
		break;		  // break out of the while loop
	}
} while(play);
return 0;
}

[/hide]

 

I'ma go ahead and assume this is some C language... I'm also going to assume you forgot to copy the first (several?) lines of code :wall:

WHAR BE YOUR LIBRARIES/HEADER FILES/WHATEVER THEY'RE CALLED???

Unless there is some way to get around all that #include <walrus> stuff... If this is the case, you will learn it to me.

It's C++ and I don't know why I didn't put that line in. There's only one include, though.... It's a header file specifically for include statements just to make the code a little prettier.

 

If you're curious, here's what's in my includes.h header file:

#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <iomanip>
#include <cstdlib>
#include <ctime>
#include <windows.h>		//used for getting inputs
#include "Classes.h"		// holds all the class definitions
#include "globals.h"		// holds all the global variable declarations
#include "prototypes.h"
#include "startProgram.h"	// menu function and creates the map
//#include "file_io.h"		// handles regular file I/O - not in use any more
#include "bin_file_io.h"	// handles binary file I/O
#include "friendly.h"		// handles friendly character creation and whatnot
#include "fighting.h"		// handles enemy creation and fighting
#include "bosses.h"			// handles boss creation and fighting
#include "movement.h"		// handles movement and refreshing the map

 

It'd be even longer if I followed convention and had two files for each of my 6 classes (one for the definition, one for the definitions of the member functions), but until I start needing an extraordinary number of classes, each with a crapload of member functions, I think I'll pass on that.

Post all of teh sauce code at once? :D

Including what's in those standard C++ libraries? :ohnoes:

> SELECT * FROM users WHERE clue > 0;

0 rows returned

There's no place like 127.0.0.1

There are only 10 types of people

in this world: those who understand

binary and those who don't.

This statement is false.

$DO || ! $DO ; try

try: command not found

Including what's in those standard C++ libraries? :ohnoes:

Whatever is necessary for me to play XD I'm still a novice programmer :wall:

I can just upload an executable somewhere if all you want to do is play what I've got so far (it's complete, but it has some... uhh... balancing issues still; let's just say that you die really fast later on in the game and there's basically no way to win). Does anyone no of a good file-hosting site? I've actually never needed one before. lol

> SELECT * FROM users WHERE clue > 0;

0 rows returned

There's no place like 127.0.0.1

There are only 10 types of people

in this world: those who understand

binary and those who don't.

This statement is false.

$DO || ! $DO ; try

try: command not found

Guest
This topic is now closed to further replies.

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.