haitao:
谢谢,不过不用正则表达式这么复制吧?--另外<string.h>是不是也该用<string>
[阅读: 601] 2004-12-20 05:38:51
今天又回到举步维艰的状况了:
#ifndef _COMMINI_H
#define _COMMINI_H
#include <string>
/*
#include <time.h>
#include <sys/timeb.h>
#include <stdio.h>
//#include <unistd.h>
#include <stdarg.h>
*/
#include <stdio.h>
#include <stdlib.h>
#include <list>
//typedef list<string> TStrList1;
//不注释这一行则会报2个错:
//commini.h(21) : error C2143: syntax error : missing ';' before '<'
//commini.h(21) : error C2143: syntax error : missing ';' before '<'
class Cini
{
private:
int m_mode, m_changed;
string m_main, m_inifilename;
//上一行又有错?commini.h(27) : error C2146: syntax error : missing ';' before identifier 'm_main'
void saveback(void);