//请看下面的Demo,请用Dev来编译
#include <iostream>
#include <cstdlib>
using namespace std;
class Demo
{
private:
static const int A =3;
// mode 1
enum{B = 4,C};
// mode 2, but just for integer
static const double PI = 3.14;
static const int a[2];
public:
void display()
{
cout<<"A is: "<<A<<endl;
cout<<"B is: "<<B<<endl;
cout<<"C is: "<<C<<endl;
cout<<"PI is: "<<PI<<endl;
cout<<"Value of const array are: "<<a[0]<<"
"<<a[1]<<endl;
}
};
const int Dem:a[2] = {1,2};
int main()
{
Demo demo;
demo.display();
system("pause");
return 0;
}