Académique Documents
Professionnel Documents
Culture Documents
ENGI 3891
Lecture 0:
Lecture 3 :
Variables and Constants
ENGI 3891
SO FAR..
Learning Outcome.
• Abstracts and Paradigms
• Data types
• Computations and Expressions
Constants
Sample program
Eg :
int x;
In C++, there are three ways to initialize variables and they are all equivalent.
Finally, a third method, known as uniform initialization (introduced by the C++ 11),
Pi = 3.14159