String manipulation in c++
Can anyone provide me with helpful links regarding string manipulation in C++ There are a lot of code coach problems regarding that but the tutorial given here doesn't go into much detail on strings. Any help would be appreciated.
1/13/2020 7:55:12 PMMuhammad Ozair Attiq
1 AnswerNew Answer
An official documentation should be your best friend. First, the official std::string class: https://en.cppreference.com/w/cpp/string/basic_string The old string library from C includes some functions for checking for certain characters or transforming characters to upper-/ lowercase: https://en.cppreference.com/w/c/string/byte std::getline() is useful when you want to read in strings with spaces: https://en.cppreference.com/w/cpp/string/basic_string/getline Stringstreams can also occasionally be helpful to you: https://en.cppreference.com/w/cpp/io/basic_stringstream And last, certain functions from the algorithm header work well in combination with strings: https://en.cppreference.com/w/cpp/algorithm