testclassconstdefaultvaluesimp.cpp
来自「computer clock codein c++,computer clock」· C++ 代码 · 共 22 行
CPP
22 行
//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 + =
减小字号Ctrl + -
显示快捷键?