Professional Documents
Culture Documents
LECTURE 3
1
FLOW CHART
BASIC SYMBOLS
EXAMPLE
8
EXTENDING THE SIMPLE C++ PROGRAM
9
CREATING,
COMPILING,
Source code (developed by the programmer)
Create/Modify Source Code
#include <iostream>
AND RUNNING
using namespace std;
PROGRAMS
// Display Welcome to C++ to the console
cout << "Welcome to C++!" << endl; Source Code
return 0;
}
Compiler
If compilation errors
stored on the disk
Linker
Result
10
PRACTICE
Which of the following preprocessor directive will work with all C++ compilers?
a. #include < iostream>
b. #include <iostream >
c. include <iostream>
d. #include <iostream>
Can C++ run on any machine? What is needed to compile and run C++ programs?
What are the input and output of a C++ compiler?