Check out example codes for "how can make string value in cpp". It will help you in understanding the concepts better.

Code Example 1

string word = "";
word = "Hello  World!";

Code Example 2

#include <string>
string hello= "hello you thre :)";

Learn ReactJs, React Native from akashmittal.com