taking a string in c++ code example
Example 1: how can make string value in cpp
#include <string>
string hello= "hello you thre :)";
Example 2: input a string in c++
string fullName;
cout << "Type your full name: ";
getline (cin, fullName);
cout << "Your name is: " << fullName;