Pa help po kung paano mag base yung array ko sa input ng user if he/she input 1000 dapat yung array ku is 1000. Tyia
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.
int x;
cout << "Estimated Number of residents: "; // Type a number and press enter
cin >> x; // Get user input from the keyboard
string name[x], age[x];
int i;
cout<<"Name";
for(i=0; i<x; i++)
cin>>name[i];
cout<<"\n Age:";
cin>>age[i];
.......