摘要:
代码:class AutoDeleteArPtr{public:explicit AutoDeleteArPtr(char* &cPtr){m_cPtr=cPtr;}~AutoDeleteArPtr(){if (NULL != m_cPtr){delete[] m_cPtr;... 阅读全文
摘要:
c++代码 1 extern "C" _declspec(dllexport) bool get(char*& strPorts) 2 { 3 string str = "Hello"; 4 int length = str.size() + 1; 5 strPorts =... 阅读全文