Code::Blocks Simple Hello World Console Applications

yohanli.com

Created with Sketch.

Code::Blocks Simple Hello World Console Applications

Create New Project from File -> New -> Project

Pick New Console Project then Click Go

Click Next

Select C then Click Next

Fill project title and choose folder to create project in

Choose GNU GCC Compiler and then click Finish

Create Code in main.c files
#include <stdio.h>
#include <stdlib.h>

int main()
{
printf(“Hello world!\n”);
return 0;
}

Build -> Run (or simply press Ctrl + F10) or Press F9 to Build and Run

Yes

Your first C program accomplished

Facebook Comments

 

Leave a Reply

Your email address will not be published. Required fields are marked *