read UART pins from C++

hey guys,

I’m trying to read data from UART pins using C++
I’ve tried searching for on-line tutorials, but couldn’t get anything to work.

I have already configured UART pins using this tutorial. Link

Can someone provide a working C++ code or a tutorial?