求高手解决 cin cout 的问题
程序如下 #include "VEmotion.h"
#include<iostream>
using namespace std;
void main()
{
int index=0;
AMsg pMsg;
AMsg UName;
AMsg questions[10]={"你喜欢跳舞吗玩吗?(y/n)","我想和你交朋友,你愿意吗?(y/n)","亲爱的,你爱我吗?(y/n)","嫁给我吧(y/n)","我们离婚吧(y/n)"};
cout<<"输入姓名:";
cin>>UName;
cout<<"今天遇到一个熟悉的陌生人,他对你很感兴趣……"<<endl;
VEmotion sample;
cout<<"嗨!"<<UName<<",";
while(1)
{
cout<<questions[index];
cin>>pMsg;
sample.event(pMsg);
index=sample.getRelation()-1;
if(sample.getRejection()==MAX_BEAR_TIME)
{
cout<<endl<<"***你很讨厌我吗???****"<<endl;
}
if(sample.getRelation()==BYEBYE)
{
cout<<endl<<"***对不起,不要流泪****"<<endl;
}
}
}
--------------------Configuration: zhu3_5 - Win32 Debug--------------------
Compiling...
main.cpp
C:\Documents and Settings\zhu3_5\main.cpp(10) : error C2872: 'cout' : ambiguous symbol
C:\Documents and Settings\zhu3_5\main.cpp(11) : error C2872: 'cin' : ambiguous symbol
C:\Documents and Settings\zhu3_5\main.cpp(12) : error C2872: 'cout' : ambiguous symbol
C:\Documents and Settings\zhu3_5\main.cpp(14) : error C2872: 'cout' : ambiguous symbol
C:\Documents and Settings\zhu3_5\main.cpp(17) : error C2872: 'cout' : ambiguous symbol
C:\Documents and Settings\zhu3_5\main.cpp(18) : error C2872: 'cin' : ambiguous symbol
C:\Documents and Settings\zhu3_5\main.cpp(23) : error C2872: 'cout' : ambiguous symbol
C:\Documents and Settings\zhu3_5\main.cpp(27) : error C2872: 'cout' : ambiguous symbol
Error executing cl.exe.
main.obj - 8 error(s), 0 warning(s)