numerarius5988am numerarius5988am

Last person to post wins, unless they are a moderator or admin.

Last person to post wins, unless they are a moderator or admin.

Basically, this game is played so that the last person who post wins. What do they win? The ThreadKiller's Achievement; The honor of being the last person to post by virtue of the content of their post. However, moderators, admins, and anyone else who has the ability to lock the thread are disqualified from winning the ThreadKiller's Achievement, if they win by locking. If the thread is won by method of locking, the "winner" gains the Achievement Of Reprehensible Epic Lameness.

3,456,626 views 25,734 replies
Reply #17776 Top

But I'm also going to bed, so this one begins.

Reply #17778 Top

possum watches over your sleep

 

 

 

 

-Exiled Possum 

Reply #17779 Top

I lied, I didn't really go to sleep.  But I really should...

Reply #17780 Top

doesn't matter, you are still being watched

 

 

 

 

 

-Exiled Possum 

Reply #17781 Top

Possums like to watch. They can't do anything else though.

Reply #17782 Top

Except get hit by cars.

Reply #17783 Top

or hang in your closet and hiss when you turn on the lights

Reply #17784 Top

or sneak in your toilet and bite you in the balls, when you least expect it

 

 

 

 

 

-Exiled Possum 

+1 Loading…
Reply #17785 Top

This thing is kicking my ass.

 

Is it not possible to use an "or" operator in a "while" loop? Fuck C++

Reply #17786 Top

lol

it's an inclusive or

Reply #17787 Top

yep logical or = and or

and not: either or

 

 

 

-Exiled Possum 

Reply #17788 Top

It keeps telling me to use the || operator and use "bool". How do I do that?

Reply #17789 Top

Interesting... somethng practical on this thread.

Reply #17790 Top

yep, we need to derail it, before someone actually helps him

 

 

 

 

 

-Exiled Possum 

+1 Loading…
Reply #17791 Top

Never fear, tea is here.   Not sure what you're doing, but boolean || is working fine for me.

 

#include <iostream>

int main() {

   int a = 5;    int b = 2;

   while (a || b ) {       if (a)  { a--;  }       if (b )  { b--;  }       std::cout << "Iterate\n";     }

   return 0;  }

 

Reply #17792 Top

damn you and your computational jibba jabba!

Reply #17793 Top


Do note that it's a||b, and not a|b.   Although with this particular mini-program the end result is the same (that's just coincidence).  5||2 evaluates to 1, whereas 5|2 evaluates to 7.  This program works by coincidence either way because 0||0 = 0|0 = 0.   And to add to the confusion, a|b is a bit-wise OR operator, not an add (which is also coincidence:  5|2 just happens to equal 5+2 in this case). 

 

Using a|b when a||b is intended is a very typical c++ noob mistake.

 

Reply #17794 Top

What am I doing wrong???

 

choice2:
string choice2;
cin >> choice2;
while (choice2 !="north" and choice2 !="North" and choice2 !="NORTH" and choice2 !="N" and choice2 !="n")
{
while (choice2 ="south" || ("South", "SOUTH", "S", "s"))
{
wrongway();
cin >> choice2;
}
incorrect();
cin >> choice2;
}
if (choice2=="north" || "North" || "NORTH" || "N" || "n")
{
system("cls");
cout << endl << "A goblin is in front of you. " << endl << "The goblin attacks you. " << endl;
cout << endl;
} // end choice2 "north"

Reply #17795 Top

Your first mistake was making the goblin agro.

Reply #17796 Top

Goblins are the most harmless things ever.

silly peepil

Reply #17797 Top


Are you coding a MUD?   There are lots of issues with this code.  I don't know where to begin.  It looks like you're mixing constructs from other languages.  Have you successfully executed a basic Hello World.cpp program yet?   I think you need to go back to the beginning first.

Reply #17798 Top

everyone has done that "Hello World" bullshit. I took the code from a text-based game called "Zombie Survival" and just changed the storyline and changed it so you would type the direction you want to go, rather than use numbers. I just keep changing that one while loop because it's not working right.

Reply #17799 Top

serves you right

 

 

 

 

-Exiled Possum 

+1 Loading…