0

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

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by Phil++
0

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!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.