how to save a specific letter in a string c++ code example Example: string substr c++ s.substr(pos,len);