Introduction
Dev-C++ is a full-featured integrated development environment (IDE), which is able to create Windows or DOS-based C/C++ programs using the Mingw compiler system (included with the package), or the Cygwin compiler. These are the recommended requirements of Dev-C++: Microsoft Windows 98, NT or 2000 32 MB RAM 233 Mhz Intel compatible CPU 45 MB free disk space Dev-C++ allows you to write, compile and run a C or C++ program. C++ programming language is an enhanced version of C language that provides object-oriented programming (OOP) capabilities. It is a superset of C, which means that you can use a C++ compiler to compile C programs. Object oriented programming techniques differ significantly from the sequential programming used in C programming language. Although a C++ compiler like Dev-C++ allows you to compile a C program that includes some features of C++, in this course we will concentrate on C programming language. A program written in pure C language may be compiled and run using other C compilers, like Turbo C etc.
Dev-C++ interface
When you click on the Dev-C++ icon window opens (Figure 1). on your desktop, the program
Compile New source file Run
Compile and run
Figure 1.
Click on each menu on the Menu bar and study the menu options. Note the icons that are shown next to the menu items. You can find the identical icons on the toolbar. In the first part of the course you will write, compile and run a program that is written as a single source file. For this you will use only a few buttons (or menu options) from the toolbar. Later you will learn how to create a project that consists of many separate files. Before you write your first C program we customise some of the Environmental settings of the IDE. 1. Choose Options => Compiler Options from the toolbar. The following dialog box appears (Figure 2):
Figure 2. Click on the Linker tab on the top and uncheck all the boxes. Most importantly make sure that the