Recognize wich circuit is closed

Hello,
Me and my friend decided to start a project. We know few things about C++ but we need to know how or if it is possible for the language to recognize wich of our 4 circuits is closed every time. The connection will be with USB.
Please if anyone can help we are greatfull!
Topic archived. No new replies allowed.