home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / libg++-2.7.1-base.tgz / libg++-2.7.1-src.tar / fsf / libg++ / libstdc++ / tests / tstring.exp < prev    next >
Text File  |  1995-05-09  |  651b  |  21 lines

  1. an empty string:
  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
  8. z = x + y = Helloworld
  9. x += y; x = Helloworld
  10. y.insert (0, x); y = Helloworld
  11. x = x + y + x; x = HelloworldHello
  12. x = y + x + x; x = worldHelloHello
  13. z = x + s +  + y.substr (y.find (w), 1) + y.substr (y.find (w) + 1) + . = Hello, world.
  14. ch = x[0] = H
  15. z = x.substr (2, 3) = llo
  16. x.replace (2, 2, r); x = Hero
  17. x.replace (0, 1, 'j'); x = jello
  18. enter a word:word =abcdefghijklmnopqrstuvwxyz length = 26
  19.  
  20. End of test
  21.