main:()={usingstd::literals::_;// Creating a string from const char*str1:std::string="hello";// Creating a string using string literalstr2:="world"s;// Concatenating stringsstr3:std::string=str1+" "+str2;// Print out the resultstd::cout<<str3<<'\n';pos:=str3.find(" ");str1=str3.substr(pos+1u);// the part after the spacestr2=str3.substr(0u,pos);// the part till the spacestd::cout<<"(str1)$ (str2)$\n";// Accessing an element using subscript operator[]std::cout<<str1[0]<<'\n';str1[0]='W';std::cout<<str1<<'\n';}