How can I use deepstream sdk in my C++ program?

Does deepstream sdk 4.0 have examples for how to use Deepstream SDK deal with multiple camera input in a C++ program?

You can refer to test3 app in the SDK. Its a multistream pipeline which you are looking for.