string class

This is a discussion on string class within the C++ Programming forums, part of the General Programming Boards category; hi there, probably a very dealt with subject but I cant find it anywhere. I found the rather useful string ...

  1. #1
    Anal comment spacer DominicTrix's Avatar
    Join Date
    Apr 2002
    Posts
    120

    Question string class

    hi there, probably a very dealt with subject but I cant find it anywhere.

    I found the rather useful string class while surfing the info super highway and the documentation said to simply #include <string> to use the class. Well, I did that but the compliler doesnt recognise 'string' as a defined object or whatnot. Are there different versions of the library perhaps?

    thanks in anticipation

    dt
    "The most important thing about acting is honesty. If you can fake that you've got it made" - George Burns

  2. #2
    VA National Guard The Brain's Avatar
    Join Date
    May 2004
    Location
    Manassas, VA USA
    Posts
    903
    a lot of the times my compiler will recognize the <string> class without explicitly declaring it.. but most of the time i try to include it anyway just to make sure everything jives. I'm using MVSC 6.0 I'm not sure what compiler ye' are using so I can't say for sure if <string> is included with yours.

    ole' !



    wb btw, long time no see senor
    • "Problem Solving C++, The Object of Programming" -Walter Savitch
    • "Data Structures and Other Objects using C++" -Walter Savitch
    • "Assembly Language for Intel-Based Computers" -Kip Irvine
    • "Programming Windows, 5th edition" -Charles Petzold
    • "Visual C++ MFC Programming by Example" -John E. Swanke
    • "Network Programming Windows" -Jones/Ohlund
    • "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
    • "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel

  3. #3
    Registered User
    Join Date
    Aug 2003
    Posts
    1,209
    My guess, without any code, would be that you dont use std::string.

  4. #4
    Anal comment spacer DominicTrix's Avatar
    Join Date
    Apr 2002
    Posts
    120
    Good guess Shakti Thankyou. And thanks Brain (using MSVC++ 6.0 to)

    dt
    "The most important thing about acting is honesty. If you can fake that you've got it made" - George Burns

  5. #5
    Registered User
    Join Date
    Aug 2003
    Posts
    1,209
    Weeeee

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