User forums > Using Code::Blocks

Can't run code in Code::Blocks!

(1/1)

mdb:
Hi,

I wrote a code and wanted to run it but every time i click Build, Run, or Build and run nothing happens! Please tell me what I am doing wrong?

Thanks.

MortenMacFly:

--- Quote from: mdb on March 26, 2008, 06:18:45 pm ---Please tell me what I am doing wrong?

--- End quote ---
Start by telling exactly what code you wrote where -> pre/post build steps? Batch file? C::B scripting? Platform? We can't read your mind though.

mdb:
Thank you MortenMacFly for the reply. I am new to C++ so I didn't understand much of what you said!

What I did is that I ran Code::Blocks then created a new empty file. After that I wrote a C code like this:

--- Code: ---#include <stdio.h>

void main(){
 printf("test");
}
--- End code ---

Now I want to run the code and I think what I should get is a screen with the word test on it. But I don't know how!
Please help.

Navigation

[0] Message Index

Go to full version