完善目录结构
完善了目录结构,添加了以前的web段com组件调用的代码(在/测试目录下)(部署没有使用到)
This commit is contained in:
28
测试/单独功能测试/0-DLL测试(实际没有部署)/dll-goal无数据库/cutName.cpp
Normal file
28
测试/单独功能测试/0-DLL测试(实际没有部署)/dll-goal无数据库/cutName.cpp
Normal file
@@ -0,0 +1,28 @@
|
||||
/* 程序名: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;
|
||||
}
|
||||
Reference in New Issue
Block a user