1 2 3 4 5 6 7 8 9 10 11 12
|
// This is what im calling in main.cpp //
cout << "Admin: " << users[userIn].getAdmin() << endl;
// The function is as follows //
bool user::getAdmin()
{
return admin;
}
// Initial object definitions the third parameter being ADMIN //
user users[10] = { { 4, 55, true }, { 4, 55, false }, { 4, 55, false }, { 4, 55, false }, { 4, 55, false }, { 4, 55, false }, { 4, 55, false }, { 4, 55, false }, { 4, 55, false }, { 4, 55, false } };
|