How to allow unlimited user input? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

How to allow unlimited user input?

Trying to determine whether groceries are too expensive. https://code.sololearn.com/cpp005dyNVX2/#cpp Three string variables are declared, which restrict the user to three inputs (before code malfunctions...). How can we allow for more user inputs without having to declare more strings?

5th Aug 2020, 1:19 AM
Solus
Solus - avatar
0 Réponse