Check out example codes for "basic cpp programs". It will help you in understanding the concepts better.

Code Example 1

// Your First C++ Program

#include <iostream>

int main() {
    std::cout << "Hello World!";
    return 0;
}

Learn ReactJs, React Native from akashmittal.com