您的位置:程序门 -> .net技术 -> vc.net



结构的定义


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


结构的定义
发表于:2007-02-02 23:36:04 楼主
我定义一个结构:
开始写为:
struct  
{
cstring   m_strfindwhat;
bool   m_fmatchcase;
bool   m_fmatchwholeword;
}finddata;
找不到定义
但是后来改为:
struct   finddata
{
cstring   m_strfindwhat;
bool   m_fmatchcase;
bool   m_fmatchwholeword;
};
就可以了
但是这两种应该是一样的
哪位高人指点一下!


发表于:2007-02-03 14:52:431楼 得分:0
本就不一样。
发表于:2007-02-03 15:37:462楼 得分:0
能不能说具体点啊
不是很明白的
发表于:2007-02-05 12:55:003楼 得分:0
第一种你的结构体名字为空吗???
是否可以这样写?
写在后边表示新定义结构体吧?
不太清楚探讨一下。
struct   finddata_clone
{
cstring   m_strfindwhat;
bool   m_fmatchcase;
bool   m_fmatchwholeword;
}finddata;行吧
发表于:2007-02-05 12:59:144楼 得分:0
本就不一样


快速检索

最新资讯
热门点击