+ 1

am i able to input a lot of integers derectly in an array?

i want to be able to create your own list by inputting 20 numbers, make an array of them and than output them.

13th Oct 2016, 1:00 PM
Laurens Verbruggen
Laurens Verbruggen - avatar
1 Resposta
+ 3
int arr[20]; for (int i = 0; i < 20; i++) std::cin >> arr[i];
13th Oct 2016, 10:06 PM
Cohen Creber
Cohen Creber - avatar