cannot have cv-qualifier

C: const V: volatile

说明:在C++中

例子:

    #ifndef _HEAD_H
    #define _HEAD_H
    class A {
    public:
        static void print() const;  //错误
    };
    #endif //_HEAD_H
    #ifndef _HEAD_H
    #define _HEAD_H
    void print() const; //错误
    #endif //_HEAD_H