04_cpp


c++ 进阶

http://c.biancheng.net/cplus/c2cpp/

多线程与多进程

image-20230109175911885


Cxx数据类型

0

0

char *a = "string"; 
char a[] = "string"; 
char *a[] = {"string", "string"};

fprintf输出到文件

0

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

0

0


动态分配内存与释放

返回的是指针

0


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;
}

文章作者: Lee Jet
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Lee Jet !
评论
  目录