can anyone please look at the code below ( its to enter data in to objects in a class) and explain why the structure is illegal....thanks
its based on OOP principles
Code:cout << "*******************Person Details*********"; cout << "Please enter person name"; gets(personname); Names[i].setName(personname); /*sets name in object in class*/ cout << "data entered as follows:"; cout << Names[i].getName(); i++;