将python类转换成c++的最佳方法是什么?
class Something{
public:
Something(std::string name, std::string some, CustomClass* some_para, std::vector b, int A){
_A = A;
if(some_para != nullptr){
....
}else if(...){
...
}
}
private:
int _A;
int _someA;
int _someB;
};
赞0
踩0