Comp Prog 2 - Lesson 3.2
Comp Prog 2 - Lesson 3.2
2
Computer Programming 2
Good
Morning!
Open
Attendance
Review
What was our last lesson all about?
Lesson 3.2
What is
Code::Blocks
IDE
Objectives
01 Code::Blocks IDE
and its uses
02 functions of menus
and sub-menus
found in
Code::Blocks IDE
appreciate the
develop critical
03 importance of using
Code::Blocks as an
IDE for C++
04 thinking through
active participation
programming
What is
Code::Blocks IDE?
it is a free, open source, cross-
platform IDE that supports multiple
compilers. It is integrated with wide
variety of tools like text editor,
compiler, debugger and many
other tools, which essential for
creating any C and C++
Code: Blocks is geared toward the development
of C and C++ programs but it can also be used
for other programming languages, provided that
the respective SDK (Software Development
Kit) for that language is installed.
Start
After installing Code:-Blocks, you
can run the application by
selecting the program. When the
program launches, you will see
the Code:Blocks IDE user
interface window on your screen.
After installing Code:-Blocks, you
can run the application by
selecting the program. When the
program launches, you will see
the Code:Blocks IDE user
interface window on your screen.
4 PANELS OF
CODE::BLOCKS
1. Management: This panel contains
the Projects tab which displays all open
projects. The management panel also has
a Symbols tab that shows symbols,
variables, etc., being used. The
Resources Tab can also be seen in this
panel.
After installing Code:-Blocks, you
can run the application by
selecting the program. When the
program launches, you will see
the Code:Blocks IDE user
interface window on your screen.
2. Editor: In the illustration above, you
can find the editor panel with the tab that
contains main.cpp. This is the place
where you type your code. If you notice,
the lines in the editor panel are marked
for easy reference.
After installing Code:-Blocks, you
can run the application by
selecting the program. When the
program launches, you will see
the Code:Blocks IDE user
interface window on your screen.
3. Logs & others: This window is used
to output search results and messages
from the compiler and debugger.
After installing Code:-Blocks, you
can run the application by
selecting the program. When the
program launches, you will see
the Code:Blocks IDE user
interface window on your screen.
4. Status Bar: The status bar can be seen at
the bottom of the Code: Blocks user interface.
It contains the following information:
• Absolute path of the file opened on the
editor, which can be seen as C:\C++)
Hellolmain.cp
• Default character encoding of the OS. This
can be seen as "default." The character
encoding as shown in the image is
WINDOWS-1252.
• Row and column of the current cursor position
in the editor panel. (Lines in the editor)
• Keyboard mode for inserting text (either Insert
or Overwrite)
• Current state of a file. If the project has been
modified, the word "Modified" will appear on the
status bar; if not, that area will be empty.
After installing Code:-Blocks, you
can run the application by
selecting the program. When the
program launches, you will see
the Code:Blocks IDE user
interface window on your screen.
Starting a C++
Program
Start
Let us begin creating our frst C++ Program by
following these simple instructions.
Build Ctrl+F9
Run Ctrl-F10
Rebult F9
Let’s sum it up!