i m using a deque of type struct in c++. Struct contains multiple variable, how could i add those variable in deque | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

i m using a deque of type struct in c++. Struct contains multiple variable, how could i add those variable in deque

my struct contains multiple variable. we use push_back or push_front() to add it to de-que, but how can insert different variables to struct any index? (because it depends on input)

24th Jan 2018, 1:58 PM
shobhit
shobhit - avatar
1 Réponse
+ 1
Can you show the code or any example? Or have you found a solution?
3rd Feb 2018, 8:17 AM
Kinshuk Vasisht
Kinshuk Vasisht - avatar