User profile: LaboPie

User info
User name:LaboPie
History
Joined:
Number of posts:39
Latest posts:

traffic light
I see the draw rect as a private function of the TrafficLight class; in my vision the class expose a...

Trouble with classes
In Date.cpp you forgot the get_date function return value [code] void date::get_date( int m, int d,...

Using an object in several .cpp files
For using the class or function declared in a .cpp (or .h) you must include his header file. So if f...

traffic light
At first look: [code] enum LightState { RED = 0, YELLOW, GREEN }; const byte GREEN = 0xA0; const by...

How to keep program running without exiting when wrong option is chosen?
[code] case '5': exit(0); break;[/code] Here you are telling the program to exi...