C++之获取格式化当前时间
### 一、C++格式化时间及获取当前时间 ```cpp #include #include #include using namespace std; string getTime() { const time_t now = time(nullptr); char str[64]; strfti
C++
未读
C++基础之常量、变量、关键字
### 1、注释 `注释`在代码中加一些说明和解释,方便自己和其他程序员阅读代码 ### 2、变量 `变量`给一段指定的内存空间起名,方便操作这段内存 ```cpp #include using namespace std; int main() { cout << "Hello World!" <