我的标题:
#include <chrono>
#include <thread>
#include <iostream>
#include <string>
#include <fstream>
#include "include\curses.h"
Run Code Online (Sandbox Code Playgroud)
我的代码问题:
std::this_thread::sleep_for(std::chrono::milliseconds(500));
Run Code Online (Sandbox Code Playgroud)
我的错误:
错误 C3083:“this_thread”:“::”左侧的符号必须是类型
这对我来说毫无意义!?添加了所需的每个标题。Intellisense(我在 VS2012 上)检测引用和参数。它只是不会编译。
其他相关错误
*错误 C2039:“sleep_for”:不是“std”的成员*
*错误 C3861:“sleep_for”:未找到标识符*