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.
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.