AUTOMATIC SCREEN SCROLLING

I have Box2D 2.3.2 and i am coding it in C++. Now, I want the sreen to scroll automatically i.e. if I have a moving object on the background the screen should scroll with it. How to achieve this with C++? 🙄

Original thread: https://box2d.org/forum/viewtopic.php?t=9907