多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
#include <iostream> using namespace std; class A{ public: double length; A(double len){ cout << "a is creating..." << endl; length = len; } void setLen(double len){ length = len; } double getLen(){ return length; } ~A(); }; A::~A() { cout << "end ........" << endl; } int main(){ A a(33.0); // a.setLen(22.0); cout << a.getLen() << endl; }