Answers for "qstring mid"

C++
2

qstring mid

//QString::mid(int startIndex, int howManyChar)
QString x = "Nine pineapples";
QString y = x.mid(5, 4);            // y == "pine"
QString z = x.mid(5);               // z == "pineapples"
Posted by: Guest on September-14-2021

Browse Popular Code Answers by Language