int main(int num)
{
// User has three trys to login with the correct password until they are shut off
int wrongpasswordCount = 3;
// User has five trys to login with a correct username and password until they are shut off
int wrongsusernamepasswordCount = 5;
bool loopStatus = true;
while (wrongpasswordCount != 0 && wrongsusernamepasswordCount != 0 && loopStatus == true)
{
cout << "Username: ";
string username;
cin >> username;
cout << "Password: ";
string password;
cin >> password;
switch (choice)
{
case '1': cout << "You have entered Cashier Module.\n";
{
// Call displayValue with argument 5
cout << "Now I am back in main.\n";
}
break;
case '2': cout << "You have entered Inventory Database Module.\n";
break;
case '3': cout << "You have entered Report Module.\n";
break;
case '4': cout << "You have entered Exit.\n";
break;
default: cout << "You did not enter 1, 2, 3, or 4!\n";
}
return 0;
}