2 A string initialized to Hello
:Hello
3 A string initialized to previous string
:Hello
4 A string initialized to
(previous string
, 1, 2):el
5 A string initialized to @
:@
6 A string initialized to
20:20
7 n
= 20 atoi
(n
) = 20 atof
(n
) = 20
10 x
+= y
; x
= Helloworld
11 y.insert
(0, x
); y
= Helloworld
12 x
= x
+ y
+ x
; x
= HelloworldHello
13 x
= y
+ x
+ x
; x
= worldHelloHello
14 z
= x
+ s
+ + y.substr
(y.find
(w
), 1) + y.substr
(y.find
(w
) + 1) + .
= Hello
, world.
16 z
= x.substr
(2, 3) = llo
17 x.replace
(2, 2, r
); x
= Hero
18 x.replace
(0, 1, 'j'); x
= jello
20 enter a word
:word
=abcdefghijklmnopqrstuvwxyz length
= 26