Hi,
Im getin the following error when i try the code below..Anyone tell me whats wrong?? (name is defined in animal class)..
52 C:\Dev-Cpp\oopAssign1.cpp no match for 'operator>>' in 'std::cin >> name'
void Animal::arrayDisplay(){
string name[3];
cout <<"Input 3 names:" << endl;
for(int i=0; i<3; ++i){
cin >> name;
name[i] = name;
cout << "name[i]" <<endl; }