What's the difference to initilize a static const int and a static const string?Code:FileA.h
class A{
public:
static const int x;
static const string str;
...
};
1. Can I initialize static const string str("abc") in the body of class A? Can i do the same for x?
2. Can I initialize const string str("abc") in the header file but outof class A? how about x?
3. Shall I use = "abc" instead of ("abc") ?
Thanks.