Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ C++;使用名称空间并发的VS2010;没有使用该名称的命名空间_C++_Visual Studio 2010_Header_Namespaces - Fatal编程技术网

C++ C++;使用名称空间并发的VS2010;没有使用该名称的命名空间

C++ C++;使用名称空间并发的VS2010;没有使用该名称的命名空间,c++,visual-studio-2010,header,namespaces,C++,Visual Studio 2010,Header,Namespaces,我试着按照上面的说明去做 我正在使用VS2010 我在我的CPP文件中添加了以下行: #include <windows.h> #include <ppl.h> #include <iostream> #include <random> using namespace concurrency; #包括 #包括 #包括 #包括 使用名称空间并发; 但是编译器告诉我“错误C2871:'并发性”:不存在具有该名称的命名空间。” 有人知道我做错了什

我试着按照上面的说明去做

我正在使用VS2010

我在我的CPP文件中添加了以下行:

#include <windows.h>
#include <ppl.h>
#include <iostream>
#include <random>

using namespace concurrency;
#包括
#包括
#包括
#包括
使用名称空间并发;
但是编译器告诉我“错误C2871:'并发性”:不存在具有该名称的命名空间。”

有人知道我做错了什么吗?
谢谢大家!

太好了,在VS2010中必须

using namespace Concurrency;

相反。

太好了,在VS2010中它必须是

using namespace Concurrency;

相反。

太好了,在VS2010中它必须是

using namespace Concurrency;

相反。

太好了,在VS2010中它必须是

using namespace Concurrency;
相反