// Justin C. Miller
// University of Wisconsin Oshkosh
// Made for: http://www.geocities.com/neonprimetime.geo/index.html
// Date: 2001
// Borland Builder 4.0
// const
#include
#include
int main()
{
const double PI = 3.14 ;
double Radius = 10 ;
cout << "Radius =" << Radius << endl ;
cout << "PI =" << PI << endl ;
cout << "Area = PI * Radius * Radius" << endl ;
cout << "Area =" << (PI * Radius * Radius) << endl ;
cout << "Now I want to change the Radius" << endl ;
Radius = 12 ;
cout << "New Radius =" << Radius << endl ;
cout << "Everything worked OK!" << endl;
cout << "But..." << endl ;
cout << "If I want to change the value of PI" << endl ;
cout << "I can't! PI = 6 would cause a compiler error!" << endl ;
cout << "PI is a constant value that CANNOT be changed!" << endl ;
getch() ;
return 0 ;
}
// OUTPUT
               (
geocities.com/neonprimetime.geo/cpp)                   (
geocities.com/neonprimetime.geo)