BIL104E - Introduction To Scientific & Engineering Computation Laboratory Course Notes 1
BIL104E - Introduction To Scientific & Engineering Computation Laboratory Course Notes 1
Installing Dev -C ++
Web site
: http://www.bloodshed.net/dev/devcpp.html
Version
C%2B%2B%204.9.9.2/devcpp-4.9.9.2_nomingw_setup.exe/download
Click OK.
Click I Agree.
Click Next.
On the first run Dev-C++, a notice window will appear. Read and click OK.
Click Next.
Click Next.
Click OK.
On the New Project screen choose Console Application and C Project. Name the first project as
Welcome.
Create a new folder named as work under the Dev-Cpp folder. From now on, save all projects under
this folder.
For the first project, create a new folder named as project1 and save Welcome.dev under this
folder.
This is the default screen of a new project. On the left column you can see Welcome and main.c
which are the first project that we will run.
Just click and copy the code below.
/* Fig. 2.1: fig02_01.c
A first program in C */
#include <stdio.h>
/* function main begins program execution */
int main( void )
{
printf( "Welcome to C!\n" );
getch();
return 0; /* indicate that program ended successfully */
} /* end function main */
Paste the code on main.c and save under the project1 folder.
A new black window which welcomes you will appear that means you installed Dev-C++ successfully.