Files
HandWritten-Analisys/测试/服务器测试/输出文件/输出待检测检测文件try catch/segmentation.cpp
yanshui177 962de04ffb 笔迹鉴别程序
考试的笔迹鉴别程序,分辨出不同人写的笔迹
2017-05-17 16:50:37 +08:00

47 lines
803 B
C++
Raw 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.
/*
主函数文件segmentation.cpp 主函数的实现文件
*/
#include "segmentation.h"
/*主函数*/
int main(int argc,char* argv[])
{
FILE *file = NULL;
string checkpath="D:/HWCV/Check/";
//读取配置文件,并配置各项参数
ReadConfig("D:/HWCV/config/configure.cfg");
cout<<"ReadConfig success"<<endl;
//初始化log文件
memset(g_log_rec, 0, sizeof(g_log_rec));
strcat(g_log_rec, "\n");
strcat(g_log_rec, GetTime());
strcat(g_log_rec, " 配置文件读取完毕 ");
vector<string> stuNum;
while(true)
{
//查询数据库
stuNum.clear();
DbStu(stuNum);
for(int i=0;i<stuNum.size();i++)
{
//首先合成地址
string temp = checkpath;
temp +=stuNum[i];
file = fopen((char*)temp.c_str(),"w");
fclose(file);
SaveLog(".", g_log_adr, "a");
}
Sleep(SLEEP_TIME);
}
/*返回值*/
return 0;
}