General C++ question envolving inputs

Im new to C++ programming (im currently taking a C++ programming class at my university) and i was wondering if someone can point me in the direction on how to program a simple input (example light sensor) into a C++ program.

I have 3 years of PLC programming experience and wanted to branch out and make fun little programs that control small systems.

I know this is kind of vague but if someone can point me in the right direction that would be great.

Thanks.
C++ provice different function for interfacing with devices check them out
is there anyway you can point me in the direction of them. Im a noob and have know idea where to start.
You need to google around "C++ serial port".

Both C and C++ are not designed to handle serial port I/O directly. They are designed to handle character streams... so you will need to open the serial port (another file/stream in C/C++) in a platform-specific way.
Topic archived. No new replies allowed.