在哪里定义了timestamp()函数

时间:2012-07-22 18:17:47

标签: c++

我正在尝试使用timestamp()函数。但我不知道它定义在哪个标题中。我试过了,但它不在那里。它在编译时给出错误

error: ‘timestamp’ was not declared in this scope

2 个答案:

答案 0 :(得分:1)

进行简单的搜索:

  

grep timestamp * .h

或递归:

  

grep -r timestamp。

(这适用于类似unix的系统;如果你使用Windows或其他东西,则进行调整)

答案 1 :(得分:1)

没有标准timestamp()功能。如果您想使用std::time(),可以添加<ctime>标题。

相关问题