
368 Fundamentals of Computer Programming and IT
another container class and not a part of STL (Standard Template Library). The STL is described in the next
chapter. The pr
ogrammer should include the string header file.
Instead of declaring character array an object of string, class is defined. Using member function of string
class, string operations such as copying, comparison, concatenation etc. are carried out more easily as com-
pared to C library functions.
The string class is very vast. It also contains several constructors, member functions, and opera tors.
These constructors, member functions, and operators help us to perform the various ...