cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
lights
lights
Mar 8, 2014 at 3:50am UTC
kmtompkins
(115)
can any one give me a code for begin able to press a button to turn light on there are 4 button and 4 lights thank you
Last edited on
Mar 8, 2014 at 3:50am UTC
Mar 8, 2014 at 4:58am UTC
giblit
(3750)
1
2
3
4
5
6
bool
pressed =
true
;
if
(pressed) {
//turn light 1 on
}
In all seriousness that would be pretty much impossible for us to help with without you providing more information.
Topic archived. No new replies allowed.