C++ to Arduino

Hi I'm doing my graduation project on C++ Its about theater seats finder.

I have the program on C++ (windows format) but i need to send signals to the program so it can change the color of the seat on the display screen as the customer for example sit on the seat on real so it can tell to the rest of people if that seat is taken or not.

I need to know how i connect the arduino board to the C++ code through the arduino code

Thank u for helping

The Arduino can send data to the serial port, using Serial.print, Serial.println, and Serial.write, after Serial.begin is used to connect to the serial port.

The C++ program can use the CSerial class to read data from, or write data to, the serial port.

This is a common question and is usually answered in the Software interfacing section of this forum.

for example sit on the seat on real so it can tell to the rest of people if that seat is taken or not.

Do you mean that there is to be a sensor in every seat in the theatre? This is perhaps outside the scope for a single arduino to handle and is an absolute nightmare to wire up.

So when you go to the toilet you come back and discover your seat is taken? :o