I have a final exam on data structures tomorrow, prof. distributed suplemantary questions. one of them is below.While dealing with this I'm stuck at line-3 and line-4. What does "B(2,A)" mean?also "X < int > C (3, 5);"at line-4 is a problem for me. I know B is queue but what is X then ? Thanks in advance
Draw a diagram that shows the data structures created when the following code is executed:
1-void main (void)
2-{ Queue<int> A; for (int i=0; i<5; i++) A.QInsert(i);
3-X < Queue <int> > B (2, A);
4-X < int > C (3, 5);
5-Stack <X <int> > D; for (int i=5; i<6; i++) D.Push (C)