Thats a big project and completely depends on what application you are connecting to..
- you need to write a function to connect and maintain a connection and pass on posts to another function
-that function needs to search the post for what it is your looking for and based on what it finds send it to a function to react to it..
aside from that idk how much else to help you cause that is a very general question.. if you are new to c++ try writing small bits of a code first to try and understand algorithm and syntax better