📄 const.cpp
字号:
#include <stdio.h>
class c {
public:
int j;
c(void) {j=10;}
};
void PrintInt(const c* Object)
{
c* New = Object;
New->j +=5;
printf("%d\n", New->j);
}
void main(void)
{
const c Sample;
PrintInt(&Sample);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -