多线程同时调用printf()有时候可能会在控制台阻塞,qDebug()一般不会。

  sdKhIpc8YPFM   2023年11月05日   43   0   0 C++多线程多线程c++

安装服务 sudoapt-getinstallsamba 修改配置文件 sudovi/etc/samba/smb.conf 参数 [share]comment=sharefolderpath=/home/test/workcreatemask=0777directorymask=0777validusers=userforceuser=nobodyforcegroup=nogrouppublic=yesavailable=yeswritable=yesbrowseable=yes 设置密码 smbpasswd-auser 重启samba有关服务 sudo/etc/ini...

官网教程 地址:http://wiki.ros.org/cn/melodic/Installation/Ubuntu

  sdKhIpc8YPFM   2023年11月05日   34   0   0 官网Ubuntu官网linuxlinuxubuntu

函数体 voidh264toMp4(constcharfileName,constcharsavePath) { intframe_index=0;//统计帧数 intinVStreamIndex=-1,outVStreamIndex=-1;//输入输出视频流在文件中的索引位置 //constcharinVFileName[1000]; //strcpy(inVFileName,fileName); //charstr1=strtok(inVFileName,"/"); //charfileTmpName; //printf("%s\n",str1); //intk=0; //cha...

头文件 ifndefFFMPEGDECODER_H defineFFMPEGDECODER_H include<iostream> include<memory> include<QImage> include<QMutexLocker> extern"C"{ include<libavcodec/avcodec.h> include<libavutil/channel_layout.h> include<libavutil/common.h> include<libavutil/frame.h&...

中文乱码 argv参数中文乱码 使用QString::fromLocal8Bit()

  sdKhIpc8YPFM   2023年11月05日   41   0   0 qtC++中文乱码Qt中文乱码c++

const修饰普通变量 constintnValue; intconstnValue; const修饰指针变量 指针本身是常量 (char)constpContent; 指针所指向的内容是常量 const(char)pContent; (char)constpContent; 两者都常量 constcharconstpContent; const修饰函数 voidfunction(constcharVar); voidfunction(constClass&Var);

  sdKhIpc8YPFM   2023年11月05日   22   0   0 C++指针变量指针变量c++

经典交换函数 voidswap_v1(intval_1,intval_2) { inttemp=val_1; val_1=val_2; val_2=val_1; } 简单使用 defineSWAP_V2(a,b)(a+=b,b=ab,a-=b) defineSWAP_V3(x,y){x^=y;y^=x;x^=y} 但是以上的使用需要考虑输入的参数是否指向同一块内存。 解决方案 staticinlinevoidswap_final(intval_1,intval_2) { if(val_1val_2) return; val_1^=val_2; val_2^=val_1; val_1...

关注 更多

空空如也 ~ ~

粉丝 更多

空空如也 ~ ~