INTRODUCTORY SESSION
Programming Fundamentals (PF)
1st Week (Lab #1 and Lab 2)
Mr. Niamat Ullah
Department of CS & IT,
Sarhad University, Peshawar.
WHAT IS AN IDE?
• An Integrated development environment (IDE) is a type of
computer software that helps computer programmers to
develop software.
• An IDE contains a code editor, a compiler or interpreter and
a debugger that the developer accesses through a single
graphical user interface (GUI).
SOME COMMON FEATURES OF
IDES INCLUDE:
• Code Editor: IDEs typically offer a code editor with features like syntax
highlighting, code completion, and code navigation to make it easier for
developers to write and edit code.
• Debugging Tools: IDEs include tools for compiling and debugging code,
which helps developers identify and fix errors and issues in their programs.
• Project Management: IDEs often provide project management features to
organize and structure code files and resources effectively.
• Auto Code Generation: Some IDEs have features for auto-generating code
snippets which can save time and reduce repetitive coding tasks.
HISTORY OF IDE
• Text Editors was used until 1983.
• Borland Ltd.: Publish TurboPascal 1983,integrated
editor and compiler.
• Microsoft’s Visual Basic (VB), 1991, first real IDE
POPULAR EXAMPLES OF IDES INCLUDE:
• Visual Studio (used for C#, C++, and more)
• Eclipse (used for Java development and more)
• PyCharm (for Python development and more)
• Android Studio (for Android app development)
• Xcode (for iOS and macOS app development)
• NetBeans (for Java and more)
• Nitrous:Support Ruby,Python,Node.js and more-Cloud
(Remote Server) Based IDE
• Code Blocks (used for C, C++, and more )
WHAT IS CODE BLOCKS?
• Code Blocks is a light weight, easy to use,
open source, cross platform IDE for
developing any C and C plus plus (C++)
applications.
OPEN SOURCE
• Code Block is developed using C++ and wxWIDGETS GUI.
• Its original source code is freely available to read, understand,
modify and extend.
CROSS PLATFORM
• Code Blocks is available for almost all platforms like
windows, Linux, Mac OS, etc.
• Hence, Applications developed in Code Block can be ported
from one operating system to another operating system
easily.
IDE
• Stands for integrated developing environment.
• Code Blocks is integrated with wide variety of tools
like code editor, compiler, debugger and many
other tools, which are essential for creating any C or
C++ applications.
INSTALLING CODE::BLOCKS
• Download Code::Blocks:
• Go to the official Code::Blocks website at
https://www.codeblocks.org.
• On the homepage, click on the "Downloads" link in the top menu.
• Choose the Installer:
• Under the "Downloads" section, you'll see various download
options. Select the "Download the binary release" link.
• Select the Appropriate Version:
• You will see a list of available download options. Choose the version
that suits your needs (e.g., "codeblocks-XX.XX-setup.exe," where
"XX.XX" represents the version number).
• Download the Installer:
• Click on the link to download the installer. Your browser will start downloading
the installation file. The file size is typically not very large.
• Run the Installer:
• Once the download is complete, locate the installer file (usually in your
"Downloads" folder) and double-click it to run the installer.
• Select Installation Options:
• The installation wizard will open. Click "Next" to begin the installation process.
• You'll be asked to select the components you want to install. By default, the
necessary components for a typical installation will be selected. You can
customize the installation if needed.
• Choose Installation Location:
• Select the installation directory for Code::Blocks. The default location is
usually in the "C:\Program Files" directory. You can choose a different
location if you prefer.
• Select Start Menu Folder:
• Create a Start Menu folder for Code::Blocks shortcuts, or use the default
name provided by the installer.
• Choose Additional Tasks:
• The installer may offer additional tasks, such as creating desktop icons or
adding Code::Blocks to the system PATH. Select the options that you
prefer.
• Start the Installation:
• Click "Next" to start the installation.
• Installation Progress:
• The installer will copy the necessary files and
components to your computer. This process may
take a few moments.
• Complete Installation:
• Once the installation is complete, click "Next" to
finish the setup.
• Launch Code::Blocks:
• You can choose to launch Code::Blocks immediately
after installation by checking the corresponding box.
If you don't select this option, you can manually
launch Code::Blocks later from the Start Menu.
• Code::Blocks is now installed on your Windows
computer. You can launch it, create new projects,
and start writing and compiling code.
CODE BLOCKS UI: USER INTERFACE
Title Bar
Menu Bar
Tool Bars Section
Starter Page
Manager Panel
Logs and Others
panel group
HOW TO CREATE A NEW C++ PROJECT IN CODE
BLOCK IDE?
LAB TASK #1:
What are the key steps to install Code::Blocks on a
Windows system?