954,483 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

On Codeblocks

Hi,
I am new to programming. As an absolute newbie, I downloaded codeblocks and wrote my first programme i.e. Hello World. But when I hit F9 key of my keyboard, the programme didn't run. Can someone guide me as to how a programme is run after writting it in the console box of codeblocks? Thanks in advance!

dabboo
Newbie Poster
10 posts since Feb 2010
Reputation Points: 36
Solved Threads: 0
 

Did you create a console project? e.g. File --> new --> project then select Console Application in the popup box.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 
I hit F9 key of my keyboard, the programme didn't run.

On my Code::Blocks, F9 toggles a breakpoint. But to compile/link and run the program, you probably want to use F12. See the Code::Blocks' Build menu.

mitrmkar
Posting Virtuoso
1,809 posts since Nov 2007
Reputation Points: 1,105
Solved Threads: 395
 
On my Code::Blocks, F9 toggles a breakpoint. But to compile/link and run the program, you probably want to use F12. See the Code::Blocks' Build menu.

You may have an old version of the IDE. I have 8.02 and F9 is "build and run"

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

I have v. 8.02 too and for me, F9 really toggles a breakpoint (I think I'm using the default settings, not sure though). Anyway, it's probably best to open the Build menu and see what key does the trick.

mitrmkar
Posting Virtuoso
1,809 posts since Nov 2007
Reputation Points: 1,105
Solved Threads: 395
 

[QUOTE=Ancient Dragon;1162196]Did you create a console project? e.g. File --> new --> project then select Console Application in the popup box.[/QU
Yes I completed the entire process till writting the biginner's "Hello World" programme. But nothing would happen on hitting F9. Is there any step involved between writting on the console box and hitting F9?

dabboo
Newbie Poster
10 posts since Feb 2010
Reputation Points: 36
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You