Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Funny Programming Declarations

08 Apr 2012   #1
Windows i7 920

Windows 8 Pro x64
 
 
Funny Programming Declarations

Funny C/C++ Declarations!

I had a hard time breathing with how much laughing some of those caused me...
My System SpecsSystem Spec
09 Apr 2012   #2
Everlong

 

Lol, I did something like the

women()
{
goto bathroom;
bathroom:
while (1) ;
}

in some coursework last year at University. Had to write a C program that demonstrated concurrency between multiple threads. The problem was a bathroom problem. The threads (people) would join a queue. These would be set to men and women. Women had priority and as many women at once could enter the bathroom, but only one male would enter at any one time, so the bathroom would fill up with women at some point, and I just put a semaphore block down and then put an inifite loop as a joke to say the men are gonna be waiting a while, lol.
My System SpecsSystem Spec
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar help and support threads
Thread Forum
Programming keyboard
Is there a way to program Page Up and Page Down, for example, to a Ctl+ please? This would enable me to keep right hand on the mouse and complete these operations with the left hand. This is on a MS Wireless Natural Multimedia Keyboard. Thanks in advance for any help. Nigel
Hardware & Devices
C++ Programming
Thanks to the creators of Seven Forums (: I'm currently learning C++ programming, and this forum has really helped me develop my general knowledge of computing. Is there any C++ programming threads?
Chillout Room
Programming
Hi guys, I have a desire to learn how to program, i have absolutely no experience whatsoever. I am 45 years old (Please tell me i'm not to old), i enjoy working in microsoft office so i presume visual basics is what i need to learn. Access is what i'm perticularly interested in learning,...
Chillout Room
Programming Help - Please!
Hey Guys, I'm trying to create a personal website for my new born daughter. I have a few ideas/thoughts in mind on how I want it to act and function. I already purchased the domain name & beginning to work on a few stuff. I need some programming help making the site "e-mail access only", meaning...
Chillout Room
Programming for those who desire to (?)
I've been trying to learn computer programming (starting with C++) but it's gotten me no where... what is an easy to learn computer programming language for someone who would like to program ? (I'm quite common with programming using a Linux environment) (((and in an unrelated discussion, has...
Chillout Room


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 21:31.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App