0

How to assign a 2-d array in C++

This program takes a time option from user then the program outputs seats for that time. I want to assign the seats array to that chosen time option. For eg. if a user choose option 1 which is 7 on time array, I want the seats array to be assigned to that time. It's possible using switch statement but that's not enough. I want to be able to print all the seats assigned to the certain time option later. https://code.sololearn.com/c90E70ATVVW6/?ref=app

21st Aug 2021, 3:19 PM
JarBeatz
JarBeatz - avatar
2 Respostas
0
Martin Taylor yes but I'm only allowed to use Struct instead.
23rd Aug 2021, 4:49 AM
JarBeatz
JarBeatz - avatar