企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
#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; }