I would be very happy if you could explain to me clearly to understand the insertAtRear function.

I want to make an insertation like

void insertAtRear(int i, string s, string n)
{
//???
}

and than also need to disply the inserted data by using
printList() with and increasing number on the left.
Like:
1: 333, AAA, BBB
2: 389, ABA, BCB
....
Thanks in advance
juniper

I don't understand how you mean but:

int main()
{
    insertAtRear(1, "s", "n");
}

void insertAtRear(int i, string s, string n)
{
     for(int o=0; (o < 100); o++)
     {
          cout << o << ": " << i << s << n << endl;
      }
}

I dunno though!

Good luck with your project!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.