From ec089c66e71c41bb6199abb6f817ea96f835c7de Mon Sep 17 00:00:00 2001 From: MassiveAtoms Date: Mon, 22 Jul 2019 10:28:44 -0300 Subject: [PATCH] id fix --- Interface.cpp | 8 ++++---- test.db3 | Bin 1036288 -> 1036288 bytes 2 files changed, 4 insertions(+), 4 deletions(-) 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 0376108957f505b362255fc945d1db392a198723..bdb8ef92458551e7cfef10c96a4c2638caa6ee07 100644 GIT binary patch delta 298 zcmZozVBfI7eu6aPj)^kPj5`_=S`!#s6PUIpFfZB9EXZy!o&5l_JPZ3$c7x4^3T*8B z#Tgt7;*I`{qMXHv>BU9U8<#Q5$2b-0XL*MCRg@QbJC~W|l^TQzNyp?B!n&ZkS=_MTv2JLDmn1PrDh*^P{4T#x+m;;D8 XftU-3xq+AmhKf2E^<@3=-!AVlE)&24Wr{<^^KD?P@3ZZ?OXaP;4S3