CPP program for simulating traffic light

2008-02-17
cpp
.cpp
views : 206

This C++ program is simulating work of traffic light, you can control the traffic light trough simple user interface.
There is class Semaphore that has attributes status and light. Status is enumeration : enum Status {sOUT, sOFF, sON, sBLINK} and light is also enumeration : enum Color {cNONE, cRED, cYELLOWRED, cYELLOWGREEN, cYELLOW, cGREEN, cBLINK}.
There is also test program that shows what this class can do.

Interface is in serbian, for translation contact me.



StumbleUpon Toolbar

Comments

YOU said

JUST NOW and rated post with :

Have A Comment?

 
 

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

Type the characters that you see in the box (7 characters). The code can include characters 0..9 and A..Z.


  

I cannot read the characters. Generate a




copyright ©2006-2008 Milko Leporis

blog powered by LM Blog version 2.0