May 2012
Intermediate to advanced
679 pages
16h 56m
English
Strings are inseparable part of computer programming. We have already learned C-strings. Now, ISO standard C++ has included a new type called string. It is available in namespace std. In fact, it is a template-based container class. We need not worry about how it is implemented internally. The outward interface of this type is very simple and intuitive. Let us study this type in detail.
Normal operations with strings are:
We can declare a string variable simply as:
string str1 ;
This creates a string variable called ...
Read now
Unlock full access