cpp string slice

string str = "Hello, World!"; string slicedStr = str.substr(7, 5);