This commit is contained in:
MassiveAtoms 2019-07-22 10:28:44 -03:00
parent ef607e7ffc
commit ec089c66e7
2 changed files with 4 additions and 4 deletions

View File

@ -277,7 +277,7 @@
cout << "\nWhat's the password? "; cout << "\nWhat's the password? ";
std::getline(cin, password); std::getline(cin, password);
Customer newcustomer{name, password, Vehicle_type(vtype), telephone, role}; Customer newcustomer{name, password, Vehicle_type(vtype), telephone, role};
cout << "\nNew customer sucessfully created\n"; cout << "\nNew customer sucessfully created with ID:" << newcustomer.id << "\n";
if (confirm()) if (confirm())
newcustomer.update_db(); newcustomer.update_db();
} }
@ -294,10 +294,10 @@
std::getline(cin, telephone); std::getline(cin, telephone);
cout << "\nWhat's the password?"; cout << "\nWhat's the password?";
std::getline(cin, password); std::getline(cin, password);
Customer newcustomer{name, password, Vehicle_type(vtype), telephone, role}; Customer newadmin{name, password, Vehicle_type(vtype), telephone, role};
cout << "\nNew customer sucessfully created\n"; cout << "\nNew customer sucessfully created with ID=" << newadmin.id << "\n";
if (confirm()) if (confirm())
newcustomer.update_db(); newadmin.update_db();
} }
void new_parkspot(vector<Park_spot>& spots) { void new_parkspot(vector<Park_spot>& spots) {

BIN
test.db3

Binary file not shown.