c++ 进阶
http://c.biancheng.net/cplus/c2cpp/
多线程与多进程
Cxx数据类型
char *a = "string";
char a[] = "string";
char *a[] = {"string", "string"};
fprintf输出到文件
FILE *fp = fopen("../../test_outputs/obj_det_logs.txt", "a+"); fprintf(fp, "%s = %d \n", class_names[obj.label], obj.label); fclose(fp);
命名空间(Namespace)
为了解决合作开发时的命名冲突问题 http://c.biancheng.net/view/2192.html
动态分配内存与释放
返回的是指针
C++调用shell
#include <cstdlib>
system("cd ../../test_outputs && ffmpeg -y -r 10 -f image2 -i cur_frame_%d.jpg -b:v 10000k night_vision_vis.mp4");
Try catch
try{
statement;
}
catch (Msnhnet::Exception ex) {
statement;
}