string s c++ code example
Example 1: declaring strings c++
std::string str = "hello world";
char *str = "hello world";
char str[] = "hello world";
char str[11] = "hello world";
Example 2: c++ string
#include <string>
std::string myString = "Hello, World!";
Example 3: c++ stirng
#include <string>