一个经验法则
来源:互联网 发布:2017年6月进出口数据 编辑:程序博客网 时间:2024/06/03 07:05
1.定义结构体elementdef.h
#ifndef __ELEMENTDEF_H_
#define __ELEMENTDEF_h_
struct stUserInfo{
char name[10]; //用户姓名
short sex; //性别,0:Famale 1:Male
char Birthday[11]; //格式YYYY-mm-DD
char Mobile[15]; //手机号码
};
struct stUser{
CString UserName;
short Sex;
CString Birthday;
CString Mobile;
};
#endif
2.定义全局变量globe.h
#ifndef __GLOBE_H_
#define __GLOBE_H_
#include "elementdef.h"
stUserInfo theUser;
int GP_ID = 0x13b1;
CString ServerIP = "10.10.8.10";
int port = 13320;
// CList <stUserInfo,stUserInfo&> userList;
#endif
3.定义扩展extends.h
#ifndef __EXTENDS_H_
#define __EXTENDS_H_
#include "elementdef.h"
extern stUserInfo theUser;
extern int GP_ID;
extern CString ServerIP;
extern int port;
#endif
使用时仅引用 #include “extends.h”即可
- 一个经验法则
- 经验法则
- 打破CEO经验法则
- 一些Flash经验法则
- 一个经验
- 一个经验
- 面向对象的61条经验法则
- The rule of thumb 经验法则
- Oracle开发经验之六法则
- 高效敏捷的十大经验法则
- 高效敏捷的十大经验法则
- 高效敏捷的十大经验法则
- zsore和经验法则(统计学原理)
- 信号完整性100条经验法则
- 关于二八法则一个方面
- 贝叶斯法则的一个例题
- rule of thumb - “经验法则”或者“拇指规则”
- 软件研发之道:微软开发团队的经验法则
- uva 439 - Knight Moves
- ubuntu server 12 LTS 安装 trac 笔记
- TQ2440移植yaffs2文件系统基于linux 2.6.30.4
- ios之协议传值(Protocol)
- (十)泛型算法
- 一个经验法则
- cvCopy与cvCloneImage的区别
- 图论之Dijkstra算法求最短路径
- 2014.3.1
- Mat 的一些基本的初始化
- JAVA方法中的参数用final来修饰的原因
- 谷歌
- SRAM与SDRAM的比较
- 使用monkeyrunner命令行、文件、eclipse平台运行全解