站长资源脚本专栏
python调用c++返回带成员指针的类指针实例
简介这个是OK的:class Rtmp_tool {public:int m_width;AVCodecContext * c;};指针的用法如下:Rtmp_tool * rtmp_tool;rtmp_tool = new Rtmp_tool();rtmp_tool->m_width = 60;
这个是OK的:
class Rtmp_tool { public: int m_width; AVCodecContext * c; };
指针的用法如下:
Rtmp_tool * rtmp_tool; rtmp_tool = new Rtmp_tool(); rtmp_tool->m_width = 60; rtmp_tool->c = c; return rtmp_tool;
以上这篇python调用c++返回带成员指针的类指针实例就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持。