C++ 类型A支持强制转换类型B的写法

来源:互联网 发布:mac视频后期制作软件 编辑:程序博客网 时间:2024/05/16 07:15

Class A

{

public:

        operator B() { return 成员; }

}

原创粉丝点击