Code::Blocks is an IDE, it just compiles and asks your OS to execute the compiled code, so any breaking is not related to C::B.
Use the debugger to trace the problem and, if you can not find it, post a question in a C++ programming forum.
C::B is free, does not require registration and does not impose limitations on usage or size.