Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Mouse’s tale “Mine is a long and a sad tale!”said the Mouse, turning to Alice, and sighing. “It is a long tail, certainly,” said Alice, looking down.

Similar presentations


Presentation on theme: "The Mouse’s tale “Mine is a long and a sad tale!”said the Mouse, turning to Alice, and sighing. “It is a long tail, certainly,” said Alice, looking down."— Presentation transcript:

1 The Mouse’s tale “Mine is a long and a sad tale!”said the Mouse, turning to Alice, and sighing. “It is a long tail, certainly,” said Alice, looking down with wonder at the Mouse’s tail; “but why do you call it sad?” And she kept on puzzling about it while the Mouse was speaking, so that her idea of the tale was something like this:

2

3 The Mouse’s tail

4 C++ string class #include using namespace std; int main() { string aString = “some words”; }

5 C++ string class operators aString += aSuffix; cout << aString; cin >> aString; cString = aString + bString; aString[2] = ‘!’;, =, ==, !=

6 C++ string class methods aString.length(); aString.empty(); aString.find(‘z’, pos); aString.assign(n, ‘z’); aString.copy(str, x, n); aString.insert(x,n, ‘z’); aString.substr(x, n);


Download ppt "The Mouse’s tale “Mine is a long and a sad tale!”said the Mouse, turning to Alice, and sighing. “It is a long tail, certainly,” said Alice, looking down."

Similar presentations


Ads by Google