1. -Dr. Piyush Charan
Assistant Professor, Dept of ECE,
Integral University, Lucknow
Unit-III Programming
using C/C++
2. EC221 Logic Development and Programming: Unit III/ Slide 2
Objectives
To learn fundamental problem solving
techniques
To learn how to design a program
To learn to use the C++ programming
language
3. EC221 Logic Development and Programming: Unit III/ Slide 3
What is C++?
C++ is a programming language.
A computer program performs a specific task, and
may interact with the user and the computer
hardware.
Human work model:
Computer work model:
4. EC221 Logic Development and Programming: Unit III/ Slide 4
What is C/C++?
The most popular programming languages:
Basic (Beginner All-purpose Symbolic Instructional Code)
C++ (an object-oriented language, based on C)
Cobol (Common Business Oriented Language)
Fortran (FORmula TRANslation)
Java
Pascal (named for Blaise Pascal)
Visual Basic (Basic-like visual language developed by Microsoft)
C (developed by the designer of the B language)
The most common versions of C++:
Microsoft VC++2008
Eclipse
g++ (for Unix machines)
5. EC221 Logic Development and Programming: Unit III/ Slide 5
Why C/C++?
Bad News:
C++ is not easy to learn
Good News:
Lots of good-paying jobs for programmers because
C/C++ is not easy to learn!
Java uses C++ syntax, it is easy to learn Java if
you know C++.
Though C++ is not the easiest language (Basic
and Pascal are easier), it is not the hardest either
(Ada, Prolog and Assembly languages are really
difficult!)
6. EC221 Logic Development and Programming: Unit III/ Slide 6
Who Uses C/C++?
Computer makers such as TCS, Microsoft, IBM, Infosys
and HP
Airport
Computer chip manufacturers
like Motorola & Intel
Software companies
Banks
Government
Hospital Authority
Telecommunications
Universities
7. EC221 Logic Development and Programming: Unit III/ Slide 7
Most Important Feature of C/C++
Most important feature of C++: its strong and
efficient support of both Structured Programming
and Object-Oriented Programming.
C/C++ runs on:
PC
Macintosh
Unix workstations (also, Unix versions of C++
are free!)
supercomputers
8. EC221 Logic Development and Programming: Unit III/ Slide 8
What Can We Do
By the End of the Course?
Program the computer in applications
such as the following:
Program a simple calculator
Program simple computer games
Program a simple text editor
Program a small inventory system for a
small company
You will be ready to take on part-time
programming jobs by the end of the semester!