I am trying to pass uid and pwd to the function CheckPW of the class PWServer.
I receive the error pwclient.cpp:41 : error: cannot call member function âint PWServer::Check PW(const char*, char*)â without object
Where am I going wrong?
Here is the code in int main():
cout << "User ID: ";
cin >> uid;
cout << "Password: ";
cin >> pwd;
PWServer::Check PW (uid, pwd)
I receive the error pwclient.cpp:41 : error: cannot call member function âint PWServer::Check PW(const char*, char*)â without object
Where am I going wrong?
Here is the code in int main():
cout << "User ID: ";
cin >> uid;
cout << "Password: ";
cin >> pwd;
PWServer::Check PW (uid, pwd)
Comment