?? thispointerillusimp.cpp
字號:
#include <iostream>
#include "thisPointerIllus.h"
using namespace std;
void thisPointerClass::set(int a, int b, int c)
{
x = a;
y = b;
z = c;
}
void thisPointerClass::print() const
{
cout << "x = " << x
<< ", y = " << y
<< ", z = " << z << endl;
}
thisPointerClass thisPointerClass::updateXYZ()
{
x = 2 * x;
y = y + 2;
z = z * z;
return *this;
}
thisPointerClass::thisPointerClass(int a, int b, int c)
{
x = a;
y = b;
z = c;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -