How can I enter data in an array of ints from the cin?
int leer[5];
cin>>leer;
How can I enter data in an array of ints from the cin?
int leer[5];
cin>>leer;
If you have an array such that:
int leer[5];
One way to fill it in based on user data could be:
for( int i=0; i<5; i++ )
std::cin >> leer[i];