📄 testclassconstdefaultvaluesimp.cpp
字号:
//Constructor with default values implementation file
#include <iostream>
#include "testClassConstDefaultValues.h"
using namespace std;
void testClass::print() const
{
cout << "x = " << x << ", y = " << y << ", z = " << z
<< ", ch = " << ch << endl;
}
testClass::testClass(int tX, int tY, double tZ, char tCh)
{
x = tX;
y = tY;
z = tZ;
ch = tCh;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -