在C++ 11中,您可以使用 std::chrono::system_clock::now() ... more information about date/time format strftime(buf, sizeof(buf), "%Y-%m-%d.
確定! 回上一頁