id fix
This commit is contained in:
parent
ef607e7ffc
commit
ec089c66e7
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user