Check out example codes for "how to print a string to console in c++". It will help you in understanding the concepts better.

Code Example 1

// Just some basic format 

#include <iostream>
#include <string>
using namespace std;

int main()
{
 cout << "Print a String" << endl; 
}

Learn ReactJs, React Native from akashmittal.com