for some reason whenever i use if statements within the main() function they always execute. i've even used if (false) {...code} and they still execute. If i move them to another function then call it, it works normally.
Any idea where I'm going wrong?
I'm using the Kdevelop IDE if that makes any difference.