Thread: class String

  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,210
    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, 01:02 AM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. String issues
    By The_professor in forum C++ Programming
    Replies: 7
    Last Post: 06-12-2007, 09: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, 10:43 AM