谁能够帮我创建这个类,立即给分
给你一个文件,格式类似于
aa=bb
cc=dd
...
现在要创建一个类解析这个文件,然后可以得到aa,bb,cc,dd,可以根据aa得到bb,根据cc得到dd。
其它的私有函数和成员变量你自己定义。公有函数一共这么多,不可以增加。
类的名字: CFileParser
公共函数: void SetFile(const char* pPathName);
int GetValue(int nItem,CString& strKey,CString& strVal);
BOOL GetValue(const CString& strKey,CString& strVal);
int GetItemCount();