#include <string>

This is a discussion on #include <string> within the C++ Programming forums, part of the General Programming Boards category; does Tubo C++ 3 (DOS) support #include <string> ?? it is unable to recognize the following things for color code: ...

  1. #1
    Unregistered
    Guest

    #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
    Unregistered
    Guest
    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
    Posts
    802
    Either way, the include is <string.h> or <cstring>

  4. #4
    Unregistered
    Guest
    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, 09:08 PM
  2. Weird, cards not outputting correctly
    By Shamino in forum C++ Programming
    Replies: 5
    Last Post: 11-30-2007, 02: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, 12: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

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