那位大哥帮忙看一下,就这么一个类:
#if !defined(AFX_DUCK1_H__26B2A994_36A3_4A7E_9C31_843BF4C95478__INCLUDED_)
#define AFX_DUCK1_H__26B2A994_36A3_4A7E_9C31_843BF4C95478__INCLUDED_#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <map>
#include "IBehavior.h"class IDuck  
{
map<char*,IBehavior*> MapBehavior;
public:
virtual void  Action();
virtual void  addBehavior(char*,IBehavior*);
virtual void  removeBehavior(char*);
IDuck();
virtual ~IDuck();};#endif // !defined(AFX_DUCK1_H__26B2A994_36A3_4A7E_9C31_843BF4C95478__INCLUDED_)总出现这样的错误,
d:\myproject_qhp\2008-07-28-test\080729\复件 duck\duck1.h(16) : error C2143: syntax error : missing ';' before '<'
d:\myproject_qhp\2008-07-28-test\080729\复件 duck\duck1.h(16) : error C2501: 'map' : missing storage-class or type specifiers
d:\myproject_qhp\2008-07-28-test\080729\复件 duck\duck1.h(16) : error C2059: syntax error : '<'
d:\myproject_qhp\2008-07-28-test\080729\复件 duck\duck1.h(16) : error C2238: unexpected token(s) preceding ';'
Generating Code...
小弟实在搞不定,没办法了,求那位大哥帮忙看一下