Files
yanshui177 6dcd378738 完善目录结构
完善了目录结构,添加了以前的web段com组件调用的代码(在/测试目录下)(部署没有使用到)
2017-05-17 20:43:16 +08:00

28 lines
494 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* 程序名cutName.cpp
功能:裁剪文件名
*/
#include<io.h>
#include <stdio.h>
#include<vector>
#include<iostream>
using namespace std;
#include <string.h>
int cutName(vector<string> &files){
vector<string> files_temp;
int num=files.size();
int i=0;
for(i=0;i<num;++i){
string temp=files[i].c_str();
temp= temp.substr(34,temp.length()-4);
files_temp.push_back(temp);
}
files.clear();
for(i=0;i<num;++i)
files.push_back(files_temp[i].c_str());
files_temp.clear();
return 1;
}