编辑类时出错
晓枫gis 2012-03-23 12:39:19 //Point.h
#include"stdafx.h"
#include<iostream>
using namespace std;
class Point{
……
}
//PointList.h
#include"stdafx.h"
#include"Point.h"
……
include "stdafx.h"
#include<iostream>
#include "Point.h"
#include "PointList.h"
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
……
return 0;
}
报错:
error C2011: “Point”: “class”类型重定义
所以想请各位帮忙看下,什么问题呢?