How do input values of an array? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How do input values of an array?

is there a format or syntax on how a user should input an array?

30th Jun 2017, 9:11 PM
RKJ 🌹
RKJ 🌹 - avatar
2 Answers
+ 5
cin >> array[index]; index being whatever index of the array you want the. value of the input to be stored in.
30th Jun 2017, 9:45 PM
Rrestoring faith
Rrestoring faith - avatar
+ 2
Thank you!
1st Jul 2017, 12:29 AM
RKJ 🌹
RKJ 🌹 - avatar