+ 1
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.
2 Answers
+ 1
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
0
Online learning and result updates in all institutes of Pakistan https://dictionary.result.pk/ .