Professional Documents
Culture Documents
What is C++
B.C. Early languages such as FORTRAN, COBOL, ALGOL, PL/I
and others.
1995 The ANSI Committee releases their draft of the C++ Standard.
1998 An official C++ standard is adopted.
(This is the day that C++ started to become obsolete.)
Programs are written by humans.
Programs are run on computers.
C++ programs are written by humans and
translates into machine language by the
C++ compiler.
C++ Programmer Machine Language
C++ Compiler 0010 1101
// Compute the area 1101 1000
// of a triangle 1001 1000
area =
0001 0010
(base * height) /
0010 0000
2.0;
Good organization is key to writing good
programs
Always comment your programs, even if you are writing
them for yourself.
Comments help you organize your thoughts.
Comments help you remember what you did.
Comments help the programmer who comes after you
understand what you did.
A program is a set of instructions that a computer or
someone else follows.
Browser
Allows the programmer to display relevant portions of the
source file.
Lesson 1 - C++ Tutorials introduction to programming
and hello world and errors
QUESTIONS
1. What is a header?
2. What is <iostream>? What does the following code do?
#include <iostream>
3. Name 2 high level languages
4. What language do computers understand?
5. What does a compiler do?
6. What are the two types of syntax errors?
7. What is the syntax for a comment?