2021年10月7日

摘要: 1. 二维数组与指针 *(a+i):一维数组的首地址 a+i:第 i 行的地址,即&a[i] &a+1:移动整个数组 a 的字节数 int ** Ptr <==> int Ptr[ x ][ y ]; int *Ptr[ 5 ] <==> int Ptr[ 5 ][ x ]; int ( *Ptr 阅读全文
posted @ 2021-10-07 22:18 祁东 阅读(17) 评论(0) 推荐(0) 编辑
 
摘要: 获取系统时间 int main() { time_t now; struct tm local; while (1) { time(&now); localtime_s(&local, &now); cout.fill('0'); cout << local.tm_hour << ":"; cout 阅读全文
posted @ 2021-10-07 22:18 祁东 阅读(18) 评论(0) 推荐(0) 编辑