Quote:
I have copied code of display function from cpp file just for view
You need to learn extremly quickly the variables are the glue between different parts of a program.
First, you store data in
q1
and
stk
, then you try to display the data by using
arr
. How do you think, the program will make the link between those variable ?
Where is the magic that move the data between variables?