5 questions
I thought it would be easy, but it's hard ㅜㅜㅜWhat should I do to make string name become John21 in the code below?string name = John;int age = 21;
In Python, string.endwith could be inspected.Does C++ also have a function that determines whether std::string ends with a specific character or not?
string msg1 = hello, hello, kk, kkkk, rrrr;I want to change hello to bye when I'm withstring.replace() is not the function I want
In C++, if there's a string with a space, What's the best way to split? Not a quick way, but a good way to look.
I want to erase all the opening characters of the string (including \n, \r, \t).I'm using the method below. Is there a better way?Oh, and tell me how to erase the opening text in front of mestd::strin...
© 2025 OneMinuteCode. All rights reserved.