c++ std::string objects

Following are some of the common operations on strings.

Delete first and last letter of the string(substring)

std::string s = "this is my string";
s.substr(1, s.length() -2);
Unknown's avatar

Author: Saurabh Purnaye

VP - Low Latency Developer @jpmchase... Linux, C++, Python, Ruby. pursuing certificate in #QuantFinance and Passed CFA L1

Leave a comment