📄 global.h
字号:
/************************************************************
手机号归属地数据导入及查询工具源代码(C++)
Author: rssn
Email : rssn@163.com
QQ : 126027268
Blog : http://blog.csdn.net/rssn_net/
************************************************************/
#ifndef _MPGLOBAL_INCLUDED_
#define _MPGLOBAL_INCLUDED_
#pragma pack (1)
//链表节点类
class StringNode
{
public:
char * value;
int length;
int offset;
StringNode * next;
StringNode(const char * val);
StringNode();
~StringNode();
};
//索引表节点类
class IndexNode
{
public:
int NumStart;
int NumEnd;
StringNode * Address;
IndexNode * next;
IndexNode();
IndexNode(int ns, int ne, StringNode * ad=NULL);
};
//索引记录结构体
typedef struct _IndexStruct
{
int NumStart;
int NumEnd;
int Offset;
} IndexStruct;
//手机归属地结构体类型
typedef struct _MpLocation
{
int NumStart;
int NumEnd;
char * Location;
} MpLocation;
//更改文件扩展名
extern char * ChangeFileExt(const char * fn, const char * fext);
//判断字符串是否为数字
extern bool IsNumeric(const char * val);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -