CString csLastAccessTime;
CString csOrderPath;
CString csOutOrderPath;
CString csErrOrderPath;
CString csStoragePath;
CString csLocalOrderPath;
CString csStorageColorPath;
CString csLocalColorPath;
bool bRead;
bool bFinished;
bool bFirstRead;
bool bConfirmed;
bool bErrorOrder;
//<--- 2009/03/31 FFS K.Yoshihara added
bool bNewCreate;
//2009/03/31 FFS K.Yoshihara added --->
vector <PHOTOINFO_t> photoVec;
OrderInfo()
{
csOrderId = NULL_STRING;
csLastAccessTime = NULL_STRING;
csOrderPath = NULL_STRING;
csOutOrderPath = NULL_STRING;
csErrOrderPath = NULL_STRING;
csStoragePath = NULL_STRING;
csLocalOrderPath = NULL_STRING;
csStorageColorPath = NULL_STRING;
csLocalColorPath = NULL_STRING;
bRead = false;
bFinished = false;
bFirstRead = true;
bConfirmed = false;
bErrorOrder = false;
bNewCreate = false;
}
}ORDERINFO_t;
1. 由于对 typedef 理解不够,因此从网上摘录了一些资料,整理如下:
2.
3. C/C++中 typedef struct 和 struct 的用法
4.
5. struct _x1 { ...}x1; 和 typedef struct _x2{ ...} x2; 有什么不同?
6.
7.
8. 其实, 前者是定义了类_x1 和_x1 的对象实例 x1, 后者是定义了类_x2 和_x2 的类别名 x2 ,
9.
10. 所以它们在使用过程中是有取别的.请看实例 1.
11.
12. [知识点]
13.
14. 结构也是一种数据类型, 可以使用结构变量, 因此, 象其它 类型的变量一样, 在使用结构变量时
要先对其定义。
15.
16. 定义结构变量的一般格式为:
17.
18. struct 结构名
19.
20. {
21.
22. 类型 变量名;
23.
评论3
最新资源