Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

splice string in c++

string str1 = "Apples are red";
string str2 = str1.substr(11, 3); // "red"
string str3 = str1.substr(0, 6); // "Apples"
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #splice #string
ADD COMMENT
Topic
Name
1+7 =