A simple serial library to send and receive data.
Copy ezserial.h and ezserial.cpp yo your project's folder and include "ezserial.h".
//File Talker.cpp
EzSerial serial("/dev/ttyACM0", 57600);
serial.Send("Hello World!\n");
//File Listener.cpp
EzSerial serial("/dev/ttyACM0", 57600);
std::string received = serial.Receive();
if(received.length() > 0){
std::cout << received;
}