Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
In c++? You mean with the Arduino IDE? Open the Serial Monitor from the drop-down menu. Then use Serial.begin(9600) in your code and set the Serial Monitor to the same baud rate (lower right corner) as your Serial.Begin command.
Or, if using a home brew app, then you need to push bytes from the arduino using the Serial.begin and serial.print() or println commands to send the data to some program that is receiving the data.