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


Similar help and support threads
Thread Forum
Programming certification
Hi to all, Nowadays every skill has a certification, like MCITP, CCNA and so on. What about the programming? For example, apart from the universal degrees, is there any certification on C++ programming language? Someone that wants to be employed in a e.g., company, will need it so much to prove...
General Discussion
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 Language
hi guys! can you recommend me some good programming language for beginners just like me? my friend in school recommends Turbo C++..is this a suitable language for beginners to learn? any help would be greatly appreciated..thanks guys...
Software
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


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:32.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App