来自「C语言相关程序」· 代码 · 共 18 行
TXT
18 行
#include<iostream.h>
class pp
{
public:
int n;
float m;
pp *operator->()
{
return this;
}
};
void main()
{
pp t1;
t1->m=10;
cout<<"t1.m is : "<<t1.m<<endl;
cout<<"t1->m is :"<<t1->m<<endl;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?