摘要: C++ 返回数组指针简单测试: #include <iostream> static const size_t ARR_SIZE = 10; static int arr[ARR_SIZE]; // 更新数组 #define UPDATE_ARR_DATA(i) for (size_t j = 0; 阅读全文
posted @ 2024-07-18 14:19 double64 阅读(18) 评论(0) 推荐(0)
摘要: #include <iostream> #include <string> static void show_msg(std::initializer_list<std::string> str_list) { for (auto beg = str_list.begin(); beg != str 阅读全文
posted @ 2024-07-18 13:00 double64 阅读(12) 评论(0) 推荐(0)
摘要: C++ 数组作为函数参数示例: #include <iostream> static void print(const int* beg, const int* end) { while (beg != end) { std::cout << *beg++ << std::endl; } } sta 阅读全文
posted @ 2024-07-18 09:16 double64 阅读(53) 评论(0) 推荐(0)