Quote Originally Posted by help_seed
What IDE would you recommend for a beginner like me? Right now I'm using Scite.
Apparently there is an extension for scite that will allow you to use the gdb debugger from scite: SciteDebug.

Quote Originally Posted by help_seed
can anyone see what I'm doing wrong here? Some times it works "fine". Other times it stops after printing "after for loop". I always get an error (from the OS) and the exit code -1073741819
I would be wary of dereferencing null pointers, e.g., there is no check if temp1 is not a null pointer. Of course, a debugger would help you to debug such problems