Thread: #include <string>

  1. #1

    #include <string>

    does Tubo C++ 3 (DOS)
    support #include <string> ??

    it is unable to recognize the following things
    for color code:

    using namespace std;

    string something;

  2. #2
    unlikely that STL will be included with that compiler. You can download a copy of STL off the net that probably can be used with it however.

  3. #3
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Either way, the include is <string.h> or <cstring>

  4. #4
    actually, string.h and cstring headers are the header files used to manipulate C style strings (aka, naked null terminated char arrays), the former in compilers not namespace compliant, the latter namespace compliant compilers.

    If you want to use the string class in STL, then its string without the .h or the preceding c. This will allow you to use syntax like:

    string myString;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 2d game
    By JordanCason in forum Game Programming
    Replies: 5
    Last Post: 12-08-2007, 10:08 PM
  2. Weird, cards not outputting correctly
    By Shamino in forum C++ Programming
    Replies: 5
    Last Post: 11-30-2007, 03:26 PM
  3. dont konw what to do next.
    By negevy in forum C Programming
    Replies: 29
    Last Post: 09-09-2005, 03:06 PM
  4. help with finding lowest number entered
    By volk in forum C++ Programming
    Replies: 12
    Last Post: 03-22-2003, 01:21 PM
  5. #includes don't seem to be working
    By Inquirer in forum C++ Programming
    Replies: 12
    Last Post: 08-05-2002, 05:38 PM