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

50 lines
1.7 KiB
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.h 主函数头文件
*/
#pragma once
#ifdef WIN32 //屏蔽VC6对STL的一些不完全支持造成
#pragma warning (disable: 4514 4786)
#endif
#include "StdAfx.h"
#include "DBop.h"
#include "path.h"
using namespace std;
#define SLEEP_TIME 1000
/*定义全局变量*/
string g_dir = "Y:/"; /* 全局变量 总路径的目录*/
string g_db_hostName = "192.168.200.97"; /*全局变量 服务器ip或名称*/
string g_db_dBName = "purple"; /*全局变量 服务器ODBC数据源*/
string g_db_userName = "BJSH"; /*全局变量 服务器用户名*/
string g_db_password = "bjshadmin"; /*全局变量 服务器密码*/
//string g_db_hostName = "localhost"; /*全局变量 服务器ip或名称*/
//string g_db_dBName = "orcl123"; /*全局变量 服务器ODBC数据源*/
//string g_db_userName = "yannsy"; /*全局变量 服务器用户名*/
//string g_db_password = "123456"; /*全局变量 服务器密码*/
string g_db_qurry_start = "200906"; /*全局变量 数据库查询_开始日期*/
string g_db_qurry_end = "201610"; /*全局变量 数据库查询_结束日期*/
string g_db_qurry_zone = "0"; /*全局变量 数据库查询_特定区域*/
string g_db_qurry_stu_num = "0"; /*全局变量 数据库查询_特定考号*/
bool g_db_qurry_all = true; /*全局变量 数据库查询_查询全部标记*/
string g_db_hoster_zk = "ZK"; /*全局变量 数据库用户zk考试院的zk本地的yannsy*/
bool g_output_cmd_config = false; /*全局变量 输出参数控制*/
bool g_output_txt_config = false; /*全局变量 输出中间文件选项*/
char g_log_adr[50] = "D:/HWCV/log_ori.txt"; /*全局变量 程序日志存储地址*/
char g_log_rec[500] = { 0 }; /*全局变量 程序日志专用变量*/
char g_err_adr[50]= "D:/HWCV/err_ori.txt"; /*错误日志路径*/
/*全局变量 输出txt结果文件*/
/*全局变量 输出txt结果文件地址*/
time_t ltime;
char *srcTime=NULL;
char timeNow[22]={0};
char msg[100]={0};