News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

systems shutsdown after running my code

Started by genwin, August 30, 2008, 11:09:15 AM

Previous topic - Next topic

genwin

Hi,

I'm new here(and new to programming) and just downloaded the latest version of codeblocks. So i ran my first code, a simple one that ran fine with dev c++. But then after executing it, the system mysteriously shuts down. Then i tried it with dev c++ and the same thing happens(although it never happened before with dev). What could be causing this problem?

thanks

Pecan

#1
Quote from: genwin on August 30, 2008, 11:09:15 AM
Hi,

I'm new here(and new to programming) and just downloaded the latest version of codeblocks. So i ran my first code, a simple one that ran fine with dev c++. But then after executing it, the system mysteriously shuts down. Then i tried it with dev c++ and the same thing happens(although it never happened before with dev). What could be causing this problem?

thanks

A bug in the program is causing the problem.

See the debugging sections of:
CUNY CodeBlocks Student Manual
http://www.sci.brooklyn.cuny.edu/~goetz/codeblocks/codeblocks-instructions.pdf
(slow loading, but worth the wait)
and:
Debugging With CodeBlocks
http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks

step through the program statements until you see the error.