This is incomplete program. My compiler show.[Error] invalid types 'int[int]' for array subscript. What does it means? I think i have something wrong with the input array.Someone help?
#include <iostream>
usingnamespace std;
int main()
{ string name,choice;
int age, counter,Aage,high,low;
string Lname,Hname;
double SumAge;
SumAge = 0;
counter = 99999;
do
{
for(int i=0;i<=counter;i++)
{
cout<<"enter name ";
cin>>name[i];
cout<<"enter age ";
cin>>age[i];
cout<<"press any character to continue or end to terminate";
cin>>choice;
}
}while (choice!="end");
// cout<<"the average age is "<<Aage<<endl;
// cout<<"the lowest age is "<<low<<endl;
// cout<<"he/she is "<<Lname<<endl;
// cout<<"the highest age is "<<high<<endl;
// cout<<"he/she is "<<Hname<<endl;
return 0;
}