CPP program for simulating traffic light
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.
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.




2008-02-17
.cpp 
YOU said