123
string myString = "machineGun"; string SubStr1 = myString.substr(0,7); //SubStr1 = "machine" string SubStr2 = myString.substr(7,3); //Substr2 = "Gun"