我在 eclipse CDT 中使用 C++,我试图通过使用将字符串转换为 uint64_tstrtoull
但每次我收到以下错误消息 -
..\src\HelloTest.cpp:39:42: error: strtoull was not declared in this scope
下面是我的 C++ 示例
#include <iostream>
#include <cstring>
#include <string>
using namespace std;
int main() {
string str = "1234567";
uint64_t hashing = strtoull(str, 0, 0);
cout << hashing << endl;
}
return 0;
}
我做错了什么吗?