How to convert this to array without fixed values | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

How to convert this to array without fixed values

Need to change the code with no fixed value.. Ie, it should take n values and print the same values https://code.sololearn.com/csCTJFyRzSOf/?ref=app

28th Jan 2021, 6:20 AM
Sreejith P
Sreejith P - avatar
1 Antwort
+ 1
Use a std::vector. It is a dynamic array.
28th Jan 2021, 6:44 AM
Théophile
Théophile - avatar