CodeLibrary/01_Clion_Cplus_learn_20240419/main.cpp

33 lines
452 B
C++
Raw Normal View History

2024-04-20 00:40:58 +08:00
/*
* Code: Cplus学习
* Date: 2024-04-19
* Design by JRNitre
*
* Function:
* *
* *
* */
#include <iostream>
using namespace std;
class person{
public:
// 构造函数 - 无参
person(){
cout << "no parameter structure function" << endl;
}
// 析构函数 - 无参
~person(){
cout << "no parameter destructors function" << endl;
}
};
int main() {
person p1;
system("pause");
return 0;
}