Hi guys,can someone help me with this code?
I don`t understand why,after I`ve died (If I fail to kill a dwarf) program still continues to the next statement!?
I played around with curly brackets and blocks,but for the life of me...I can`t get it!! I know my IDE is not dumb,so it must be me! All help much appreciated and pardon my poor grammar!
man, that was quick! This forum is tha bomb ;)
Thank you so much salem c !!!
I still haven`t learned indentation,but will dwell on it this whole day!
Thank you again, salem c for your time...I got some indentation learning to do!
if you do these 3 rules and nothing else, your code will be readable. there are better ways, but this will get you 90% of it and few complaints.
rule1: if you type {, every statement after it until you type } has a tab or a fixed number of spaces (3 or so) in front of it. If you nest {} twice, you get 2 tabs or n*2 spaces, and so on for each nested pair.
rule2 every loop or conditional statement gets a {} pair even for the 1 and only statement.
rule3 {} characters go on a line by themselves.
2 and 3 can be argued out in favor of more complex rules. But they work and are simple to follow and very readable.
Thank you very much Jonnin!!
I can see it now!
that is my problem...blocks!! i will go thoroughly trough and try to understand it!
Guys you Rule!!!
Thank you again,from the heart!!!