Intro To C
Intro To C
COMPUTER
PROGRAMMING
MARK VENCE V. DUNGCA
OBJECTIVES
Understand basic C++ Structure
Select the appropriate name,
datatype, and initial value for a
memory location
Declare a memory location in C++
Distinguish among a variable,
named constant, and literal
constant
Distinguishes assignment, input,
and output functions.
Describe the six expression
categories in C.
•PROGRAMMING?
• The word programming
means giving a mechanism
the direction to accomplish
a task. Now this may sound
complicated but if you think
about it, you might have
already programmed
several mechanisms.
• IN THE 1840s, Ada
Lovelace became
the first computer
programmer, inspite
the fact that
Analytical Engine
The first computer
program to Bernoulli
numbers.
• The people who write
these instructions are
called programmers. In
order to write a program
to instruct a computer, you
need to think about each
problem clearly, breaking
them into something
called methods.
• Just as human begins
communicate with each
other through the use of
languages such as
English, Spanish, Hindi
and Chinese,
programmers use a
variety of programming
languages to
communicate with the
computer.
• In able to write computer
instructions,
programmers use a
specific set of language,
called programming
languages to create
computer programs.
Some popular languages
are C++, Visual Basic,
C# and Java.
• Within a computer, all data is
represented by microscopic
switches that can be either off or
on. The off switch is designated
by a 0, and the on switch is
designated by a 1.
•C++ is being highly used to write device drivers and other software that rely on direct
manipulation of hardware under realtime constraints.
•C++ is widely used for teaching and research because it is clean enough for successful
teaching of basic concepts.
•Anyone who has used either an Apple Macintosh or a PC running Windows has indirectly
used C++ because the primary user interfaces of these systems are written in C++.
Applications of C+
+ Programming
• Application Software Development -
C++ programming has been used in developing almost
all the major Operating Systems like Windows, Mac
OSX, and Linux. Apart from the operating systems, the
core part of many browsers like Mozilla Firefox and
Chrome have been written using C++. C++ also has
been used in developing the most popular database
system called MySQL.
•Programming Languages
Development - C++ has been used
extensively in developing new programming
languages like C#, Java, JavaScript, Perl,
UNIX’s C Shell, PHP and Python, and Verilog
etc.
•Computation Programming -
C++ is the best friend of
scientists because of fast speed
and computational efficiencies.
•Games Development - C++ is
extremely fast which allows programmers
to do procedural programming for CPU-
intensive functions and provides greater
control over hardware, because of which
it has been widely used in the
development of gaming engines.
•Embedded System - C++ is
being heavily used in developing
Medical and Engineering Applications
like software for MRI machines, high-
end CAD/CAM systems etc.
C++ Install IDE
• An IDE (Integrated Development Environment) is used
to edit AND compile the code.
•using namespace std means that we can use names for objects and variables from
the standard library.
• Another thing that always appear in a C++ program, is int main(). This is called a
function. Any code inside its curly brackets {} will be executed.
•cout (pronounced "see-out") is an object used together with the insertion operator
(<<) to output/print text. In our example, it will output "Hello World".
• Every C++ statement ends with a semicolon ;.