Just hope you don't end up wearing the book and running your program on your socks.Quote:
Originally Posted by master5001
Printable View
Just hope you don't end up wearing the book and running your program on your socks.Quote:
Originally Posted by master5001
Code:struct House
{
Book germanWarTactics;
std::set<ClothingItem> closet; //underwear, space suit
Computer computer;
unsigned char forgottenItems[4096]; //Memory buffer to hold any forgotten objects
}my_mansion;
completeHouse(&my_mansion, sizeof(my_mansion));
tm->setPersonalItem(&my_mansion);
while we're at it
Code:
while(1)
my_bank_account++;
You forgot to dereference it. I guess that'd work anyway though, if it eventually points to Bill Gates' account :D
my_bank_account is an object that overloadeds operator++ which when called adds 1 to my_bank_account.balance which is of type unsigned NumericalValueLargeEnoughToStoreAllTheMoneyInTheWo rld.
i guess i would have to change the while loop so it doesn't overflow
I didn't read all the posts so I don't know if this was said, but it's freaking retarded design to make the user wait for nothing using sleep, really bad design. IMEO *educated
> I didn't read all the posts
Excuse me sir but who do you think you are pushing this thread back on track? It had just recently really started to spin off topic (where were we, banking now?). That said, I do have to agree with that. If a program waits to give the user input, users like me think the program froze and start cursing at its developer.
Which just reminded me, while back in time I will make people fear the phrase "void main(void)" and for Hammer how about "flush(stdin)" as well. Then in the decades to come when C is invented people would fear using them, since they think it means they are some sort of nazi or something.
*compiles code*
Hey wait... my compiler doesn't seem to have timetravel.h.... apparently for visual studio the TimeMachine class is defined in MSWorldDomination.h