Você está na página 1de 12

COMPUTER

PROGRAMMING
(C++ PROGRAMMING LANGUAGE)
WHAT IS COMPUTER PROGRAMMING?
• Computer programming is a way of giving computers instructions about what
they should do next. These instructions are known as code.

• Computer programmers write code to solve problems or perform a task.

• Computer programming is the process of designing and building an


executable computer program for accomplishing a specific computing task.
WHAT DOES A COMPUTER PROGRAMMER DO?
• Computer Programmers write and test the code that allows computer
applications and programs to function.

• They translate the designs of software developers and engineers into


workable code.

• They may also update or expand the code of existing programs.

• They test programs for errors, finding and resolving lines of code.
KEY SKILLS FOR COMPUTER PROGRAMMERS
• LINUX • SQL
• JAVA • HTML
• JAVASCRIPT • PHP
• C++ • VISUAL BASIC
• ASP.NET
• C#
PROGRAMMING LANGUAGE
• A programming language is a vocabulary and set of grammatical rules for
instructing a computer or computing device to perform specific tasks.

• The term programming language usually refers to high-level, such as BASIC, C,


C++, COBOL, Java, FORTRAN, Ada, and Pascal

• Each programming language has a unique set of keywords (words that it


understands) and a special syntax for organizing program instructions.
C++
• First appearing in 1985, C++ helped lay the foundation for subsequent
languages, such as C#, D, and Java.

• Many programmers use C++ when designing software infrastructure and


resource-constrained applications, like desktop applications or e-commerce
servers.

• Experts recommend computer programming students learn C++ as one of


their first languages.
C++ BASIC SYNTAX
• Objects – Objects have states and behaviors. Example: A dog has states –
color, name, breed as well as behaviors – wagging, barking, eating. An object
is an instance of a class.

• Class – A class can be defined as a template/blueprint that describes the


behaviors/states that objects of its type support.

• Methods – A method is basically a behavior. A class can contain many


methods. It is in methods where the logics are written, data is manipulated
and all the actions are executed.
C++ BASIC SYNTAX
• Instance Variables – Each object has its unique set of instance variables. An
objects state is created by the values assigned to these instance variables.
C++ PROGRAM STRUCTURE
C++ PROGRAM STRUCTURE |
OUTPUT
C++ PROGRAM STRUCTURE
• The C++ language defines several headers, which contain information that is
either necessary or useful to your program. For this program, the <iostream>
is needed.
• The next line ‘ //main() is where program execution begins’. Is a single-line
comment available in C++. Single-line comments begin with // and stop at the
end of the line.
• The next line int main() is the main function where program execution begins.
• The next line cout<<“Hello World”; causes the message “Hello World” to be
displayed on the screen.
C++ PROGRAM STRUCTURE
• The next line return 0; terminates main()function and causes it to return the
value 0 to the calling process.

Você também pode gostar