Insert string item into list

This is a discussion on Insert string item into list within the C++ Programming forums, part of the General Programming Boards category; Hi everyone, I'm a beginner in C++. I'm currently learning the implementation of linked list. Is it possible to insert ...

  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
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,498
    then the errors popped out, saying string does not name a type.
    Remember to #include<string>
    and using std::string ; instead of just string.
    Manasij Mukherjee | gcc-4.8.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



  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, 06:40 PM
  5. Better List Box Item Search
    By pinkcheese in forum Windows Programming
    Replies: 3
    Last Post: 05-04-2002, 07:32 AM

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