阅读背景:

获取和设置重载括号操作符[]

来源:互联网 

I have the following class:

我有以下课程:

class risc { // singleton
    protected:
        static unsigned long registers[8];

    public:
        unsigned long operator [](int i)
        {
            return registers[i];
        }
};
class r



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: