Got blue, red and yellow lights that each can turn ON independently of one another. Using operators, structs, etc. how to obtain the current color, if having: Red & Blue is purple, Blue and Yellow is green and Yellow & Red is Orange. This is not a homework.
johans22 0 Newbie Poster
rproffitt 2,662 "Nothing to see here." Moderator
johans22 0 Newbie Poster
rproffitt 2,662 "Nothing to see here." Moderator
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rproffitt commented: Lights += 1; +11
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.