Thread: Insert string item into list

  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    15

    Insert string item into list

    Hi everyone,

    I'm a beginner in C++.
    I'm currently learning the implementation of linked list.
    Is it possible to insert string item into list?
    Because I tried to implement it, then the errors popped out, saying string does not name a type.
    What does that means?
    Thanks

  2. #2
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    then the errors popped out, saying string does not name a type.
    Remember to #include<string>
    and using std::string ; instead of just string.

  3. #3
    Registered User
    Join Date
    Jun 2009
    Posts
    15
    oh..
    Okay, thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 04-25-2008, 02:37 AM
  2. How to insert an item to a ListView
    By ysabelle in forum C++ Programming
    Replies: 2
    Last Post: 05-07-2007, 07:03 AM
  3. uuable to insert item to linked list
    By raghu_equinox in forum C Programming
    Replies: 4
    Last Post: 09-27-2006, 05:30 AM
  4. insert item into tree view
    By bennyandthejets in forum Windows Programming
    Replies: 2
    Last Post: 01-06-2003, 07:40 PM
  5. Better List Box Item Search
    By pinkcheese in forum Windows Programming
    Replies: 3
    Last Post: 05-04-2002, 07:32 AM