ubuntu当前项目下创建文件夹

#include <sys/stat.h>
#include <sys/types.h>
#include <iostream>

using namespace std;
int main()
{
    
    
     mkdir("../datasets===================",S_IRUSR | S_IWUSR | S_IXUSR | S_IRWXG | S_IRWXO);//在当前项目的相同目录下创建,文件名独特方便find
     cout<<"finish"<<endl;

}
//一些其他
char* imageSaveImage = new char[200];
sprintf(imageSaveImage, "../result/%05d.jpg", num);
imwrite(imageSaveImage, frame);

猜你喜欢

转载自blog.csdn.net/weixin_42630613/article/details/113238850