static const can be given a value inside the class if it is an integral type ( int, char, etc).

//Example of static constant member
struct B{
static const int a=15;
};

Constant member of a class can be defined at one time in the constructor.

//Example of constant member
struct A{
const int a;
A(int b):a(b){}
};