.net 智能感知:无操作员>&燃气轮机;匹配这些操作数
我正试图弄明白为什么我总是遇到编译器错误 IntelliSense:没有与这些操作数匹配的运算符“>>” 使用下面的代码。如果您能提供帮助,我将不胜感激。谢谢.net 智能感知:无操作员>&燃气轮机;匹配这些操作数,.net,c++,visual-studio-2010,visual-c++,.net,C++,Visual Studio 2010,Visual C++,我正试图弄明白为什么我总是遇到编译器错误 IntelliSense:没有与这些操作数匹配的运算符“>>” 使用下面的代码。如果您能提供帮助,我将不胜感激。谢谢 #include "stdafx.h" #include <string> #include <iostream> using namespace std; int main(void) { int n;//number of resources we will be dealing with
#include "stdafx.h"
#include <string>
#include <iostream>
using namespace std;
int main(void)
{
int n;//number of resources we will be dealing with
cout <<"What is number of resources to be shared?"<<
cin >> n;
return 0;
}
#包括“stdafx.h”
#包括
#包括
使用名称空间std;
内部主(空)
{
int n;//我们将要处理的资源数量
提示:
cout
cout <<"What is number of resources to be shared?"<<
cin >> n;
cout <<"What is number of resources to be shared?"<< cin >> n;