xs020105 2016-08-04 04:35 采纳率: 100%
浏览 3248
已采纳

vs2015环境下的c3861错误

图片说明
如图所示,这样的代码为什么会显示找不到标识符错误,在dc下可以编译通过
#include "stdafx.h"
#include"iostream"
using namespace std;
int main()
{
int sum = 0;
int i;
cout << "输入一串数字或者空格" << endl;
while (cin >> i) {
sum += i;
while (cin.peek() == ' ') {
cin.get();
}
if (cin.peek() == '\n') {
break;
}
}
cout << sum << endl;
return 0;
}

  • 写回答

2条回答 默认 最新

  • 小灸舞 2016-08-04 05:19
    关注

    代码没问题,应该是哪里的设置问题

    I had exactly the same problem with __builtin_addressof and I solved it.
    1.Open the About in the Visual Studio 2015.
    2.If there is an Update 3, close the Visual Studio 2015.
    3.Open the Programs and Features in the Control Panel.
    4.Right click on your Microsoft Visual Studio ... 2015 in the list and choose Change.
    5.In the wizard choose Repair and continue... (It is long-running operation, I have SSD and i5 and it took several hours.)

    参考:http://stackoverflow.com/questions/38114116/builtin-address-of-identifier-not-found-when-running-opencv-in-visual-studi

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 求解答一道线性规划题,用lingo编程运行,第一问要求写出数学模型和lingo语言编程模型,第二问第三问解答就行,我的ddl要到了谁来求了
  • ¥50 树莓派安卓APK系统签名
  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波