Sir, String class header related functions belongs to or header? I am confused with these two header libraries. Just need to clarify. So whenever I use String class, which header library must include at the start either #include or #include?
String Class Library
@Kinjal The cstring header provides functions for dealing with C-style strings — null-terminated arrays of characters. This includes functions like strlen and strcpy. It’s the C++ version of the classic string.h header from C.
The string header provides the std::string class and related functions and operators.
Since here you are using strings of STL so you should include string and not cstring.
Hope this helps