我写了这样一个头文件
#ifndef _filelist_H
#define _filelist_H
#include <iostream.h>
#include <list.h>
class filesetlist: class list;
{
public:
friend ostream & operator << ( ostream &, list &);
int flag;
double qidian_x;
double qidian_y;
double qidian_h;
double zhongdian_x;
double zhongdian_y;
double zhongdian_h;
double yuanxin_x;
double yuanxin_y;
double yuanxin_h;
double yuanxin_r;
double yuanxin_l;
};
#endif;
然后又写了这样的filelist.cpp文件
#include "list.h"
ostream & operator << ( ostream &out, list &li)
{
out<< li.qidian_x<< li.qidian_y<< li.qidian_h<<endl;
out<< li.zhongdian_x<< li.zhongdian_y<< li.zhongdian_h<<endl;
out<< li.yuanxin_x<< li.yuanxin_y<< li.yuanxin_h<< li.yuanxin_r<< li.yuanxin_l<<endl;
return out;
}
可是编译是时提示
error C2146: syntax error : missing ';' before identifier 'Length'
error C2501: 'DWORD' : missing storage-class or type specifiers
error C2501: 'Length' : missing storage-class or type specifiers
error C2146: syntax error : missing ';' before identifier 'GetPrevLink'
error C2433: 'WINAPI' : 'inline' not permitted on data declarations
fatal error C1004: unexpected end of file found
是什么原因啊?