break statement breaks out of the innermost conditional, generally using break is a bad idea. It's hard to interpret the flow of the program |
I have never heard that before (That they are a bad idea to use)... Break statements are very helpful and don't confuse the flow of the program at all in my opinion.
Also break statements don't break out of if conditionals... They will "break" out of a switch conditional and loops though.
@OP
Could you state exactly what problem you are having? You are quite vague on the problem and to be honest your code is so poorly formatted it is quite hard to browse through it (Please keep indentation consistent).
So basically we are going to need more information on exactly what you are having trouble with (The more details you provide the more we can help).
Otherwise I will just say what I usually say. Learn how to use a debugger. It will be the most important tool you have as a programmer and it is a shame that most schools don't even teach their students about debugging. If I had my way you would learn about it right after you learned about variables, loops, and control statements.
Anyways here is a tutorial on debugging with Visual Studio's http://www.codeproject.com/Articles/79508/Mastering-Debugging-in-Visual-Studio-2010-A-Beginn . If you don't have VS don't worry the knowledge can be transferred to most other IDE's also.
Take a few hours and make sure you understand them concepts and I guarantee you that you will save yourself from hundreds of hours of headaches in the future.