Searching for a customer's bank account | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Searching for a customer's bank account

The code below is a bank account. I need to make the last 2 functions search for the customer's name or account number between all customers info, so if they realize who is this customer, they can save or withdraw money. The mistake here is the last two functions can't make a for loop across the customers, so they can't realize their names or codes. If this works I will make the customer choose if they want to make the program search for their account by their name or their account number. Can anyone help me, please? UPDATE: I removed continue and break statements, and this is the new code: https://code.sololearn.com/c2dyN7NGuD3h/#cpp

13th Apr 2020, 7:59 PM
Janna Al-Ward
Janna Al-Ward - avatar
3 Antworten
+ 2
Thank you very much, ~ swim ~ !
13th Apr 2020, 9:21 PM
Janna Al-Ward
Janna Al-Ward - avatar
+ 1
I think there is no need of break and continue here not sure
13th Apr 2020, 8:14 PM
Saad Mughal
Saad Mughal - avatar
+ 1
Saad Mughal I think it will keep showing the first 3 functions if I don't put break statement, right?
13th Apr 2020, 8:17 PM
Janna Al-Ward
Janna Al-Ward - avatar