void login::addOrRemoveCashier(std::string role)
if (role == "Administrator")
std::cout << " " << std::endl;
std::cout <<"Select a choice!" << std::endl;
std::cout << "1) Add New Cashier" <<std::endl;
std::cout << "2) Remove Existing Cashier" << std::endl;
std::cout << "3) Back" << std::endl;
std::cin >> input;
switch ( input )
//add a cashier
//back to the system Main menu after adding a cashier
//remove a cashier
//go back to the system Main menu after removing a cashier
std::cout << "Invalid choice!" << std::endl;
std::cout << "You don't have access rights" << std::endl;
Why don't you rename foo to something meaningful, then it might be clearer where things should be done.
You don't see a file class asking for a file name, right? Something asks for a file name and that name is passed to the file class to use. Similarly, your class shouldn't have a method called mainPage. The prompting and stuff should be in main, not main calling into your class to ask for information.
edited once again. sorry. as my original code was in my virtual box and it's running too slow just to open up a browser and going to web pages and I have to manually type this piece of codes I didn't realize there are some typos.
I am scanning through the codes that I manually typed again to check whether there is any more things i missed out
I edited to a simpler cout statement if the user is not found.
but that's not the point. the main thing is still, why am I getting the error
multiple definition of addOrRemoveCashier(std::string)
in netbeans and yet i can run it on my xcode and g++ it in my terminal
Hi, I am not sure why my build becomes successful in netbeans now. maybe it's due to some unknown bugs in netbeans. should I encounter the problem once again I will flag out again.
Thanks for your time and patience and help