mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-23 04:39:03 +08:00
905a881f36
Sat Sep 27 16:48:00 1997 Jason Merrill <jason@yorick.cygnus.com> * std/complext.h: Lose injection decls. * std/fcomplex.h: Likewise. * std/dcomplex.h: Likewise. * std/ldcomplex.h: Likewise. Sat Sep 27 16:47:35 1997 Mark Mitchell <mmitchell@usa.net> * std/complext.h: Declare templates before making them friends. Use new friend <> syntax. * std/complext.cc: Don't rely on guiding declarations. * std/fcomplex.h: Use new friend <> syntax. * std/dcomplex.h: Likewise. * std/ldcomplex.h: Likewise. From-SVN: r15776
23 lines
675 B
Plaintext
23 lines
675 B
Plaintext
an empty string:
|
|
A string initialized to Hello:Hello
|
|
A string initialized to previous string:Hello
|
|
A string initialized to (previous string, 1, 2):el
|
|
A string initialized to @:@
|
|
A string initialized to 20:20
|
|
n = 20 atoi(n) = 20 atof(n) = 20
|
|
is = Hello
|
|
z = x + y = Helloworld
|
|
x += y; x = Helloworld
|
|
y.insert (0, x); y = Helloworld
|
|
x = x + y + x; x = HelloworldHello
|
|
x = y + x + x; x = worldHelloHello
|
|
z = x + s + + y.substr (y.find (w), 1) + y.substr (y.find (w) + 1) + . = Hello, world.
|
|
ch = x[0] = H
|
|
z = x.substr (2, 3) = llo
|
|
x.replace (2, 2, r); x = Hero
|
|
x.replace (0, 1, 'j'); x = jello
|
|
x = jeHelloo
|
|
enter a word:word =abcdefghijklmnopqrstuvwxyz length = 26
|
|
|
|
End of test
|