class String

This is a discussion on class String within the C++ Programming forums, part of the General Programming Boards category; What is class String ? Triued to read ay many places form google, but cant seem to be understand...

  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    36

    class String

    What is class String ?

    Triued to read ay many places form google, but cant seem to be understand

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    std::string is a class that represents a string, which is basically a series of characters.

    In the old days, in C, a string was a contiguous block of characters in memory that terminated with a '\0' char. This resulted in many bugs and issues because great care was required that the programmer do everything right, so when C++ was invented, the std::string class was introduced to help make life easier for programmers. It is much safer and provides an OO view of a string.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. String Class
    By BKurosawa in forum C++ Programming
    Replies: 117
    Last Post: 08-09-2007, 02:02 AM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 03:39 PM
  3. String issues
    By The_professor in forum C++ Programming
    Replies: 7
    Last Post: 06-12-2007, 10:11 AM
  4. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  5. class object manipulation
    By guda in forum C++ Programming
    Replies: 2
    Last Post: 10-09-2004, 11:43 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21