For an example Assume you have : string str1= "Hello programming world" , str2="c++"; Write c++ statements to print the following Length of str1 using 2 different ways. Index of the next character in 'g' str1 Insert str2 in str1 after the first word Str1= "Hello c++ programming world" a statement that assigns to a char variable the middle character of a given c, string s.
For an example Assume you have : string str1= "Hello programming world" , str2="c++"; Write c++ statements to print the following Length of str1 using 2 different ways. Index of the next character 'g' in str1 Insert str2 in str1 after the first word Str1= "Hello c++ programming world" a statement that assigns to a char variable c, the middle character of a given string s.
tutorial3_13.docx