And that was 2 years ago when I was designing an simple program, and I need the break, because was simulating an banking program, and without the break what the program do, it was to read a list and organize the contacts, I used the bubble method, so I need to know the first occurence of an age or last name, but without the break even finding what I request the program went to the last name so something that occur in the second renter the program answer that only occur in the 207 renter, because even finding what I request without the break the program would run till the end and every time it find the name again it will erase the previous and assume that was the first time, I didn't ask it to find how much persons has that name that would be easy I would put an counter to count starting from the 0, thinking that I could rewrite a more longer program to don't use the break, but the break make the things faster, but of course the break have to be inside the conditional. Rute Bezerra de Menezes Gondim
No comments:
Post a Comment