diff --git a/Interface.cpp b/Interface.cpp index c81e7ec..6a185a4 100644 --- a/Interface.cpp +++ b/Interface.cpp @@ -277,7 +277,7 @@ cout << "\nWhat's the password? "; std::getline(cin, password); 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()) newcustomer.update_db(); } @@ -294,10 +294,10 @@ std::getline(cin, telephone); cout << "\nWhat's the password?"; std::getline(cin, password); - Customer newcustomer{name, password, Vehicle_type(vtype), telephone, role}; - cout << "\nNew customer sucessfully created\n"; + Customer newadmin{name, password, Vehicle_type(vtype), telephone, role}; + cout << "\nNew customer sucessfully created with ID=" << newadmin.id << "\n"; if (confirm()) - newcustomer.update_db(); + newadmin.update_db(); } void new_parkspot(vector& spots) { diff --git a/test.db3 b/test.db3 index 0376108..bdb8ef9 100644 Binary files a/test.db3 and b/test.db3 differ