Header file:
class Student
{
public:
int A[30];
//...
};
.cpp file:
// ...
for (i = 0; i < n; i++)
{
cout << "Name: ";
cin >> Name.A[i];
}
// ...
Member Reference base type 'int' is not a structure or union
I wanna give out all added names in a table at. I'm a C++ beginner - sorry :(
Name. Without it this code is nonsense.