在被调用函数中获取资源及C++中的引用

#include <iostream> using namespace std; struct Teacher { char name[64]; int age; }; //在被调用函数 获取资源 int getTeacher(Teacher **p) { if (p == NULL) { return - 1; } Teacher *tmp = NULL; tmp = (Teacher*)mal
相关文章
相关标签/搜索