随笔分类 - C++
摘要:// 全局变量 std::vector<tag_t> vecTAGbody; //装拉伸后实体TAG std::vector<NXObject*> vecTAGtxt; //装TXT曲线特征TAG vector<NXObject*>::iterator itvecTAGtxt; list<doubl
阅读全文
摘要:string folderPath = strDir + "\\PDF";//定义要创建文件夹的目录 if (0 != access(folderPath.c_str(), 0))//判断文件夹是否存在 { mkdir(folderPath.c_str());//创建文件夹 }
阅读全文
摘要:方法1: char path[] = "D:\\bc.xlsx"; string strPath = path; string suffix_str = strPath.substr(strPath.find_last_of('.') );//获取后缀 方法2: char path[] = "D:\
阅读全文