Just 01 CPP Handout
Just 01 CPP Handout
Just 01 CPP Handout
Jo Ann Smith
AN INTRODUCTION TO C++
AND
THE C++ PROGRAMMING ENVIRONMENT
object
encapsulation
behaviour
attribute
method
class
instance
#i n c l u d e <i o s t r e a m >
u s i n g namespace s t d ;
i n t main ( )
{
c o u t << ” H e l l o World ” << e n d l ;
return 0;
}
Step 3
Execute program
Output
double salary ;
double cost = 12.95;
string firstName ;
string homeAddress = ” 123 Main S t r e e t ” ;