Not able to understand this code

can we do this program without using structure?
if yes then how ? please provide the code ;
and why do we need structure?
code link : https://ide.codingblocks.com/s/212015

@army_100 Yes you can use the STL libraries of pair and vectors

how to use the above code without using stuct?

@army_100 I told you na. You can use STL libraries. You can also do this with arrays.

I don’t have knowledge of STL right now, what to do? Any other solution?

@army_100 Just read it. It wouldn’t take more than 1 hour. You wouldn’t get an opportunity better than this to learn STL

can you please specify the topic?

@army_100 Vectors, pair, maps

1 Like