摘要: class Person { public: Person() { std::cout << "Person()构造" << std::endl; } ~Person() { std::cout << "~Person()析构" << std::endl; } int age_get() { ret 阅读全文
posted @ 2022-05-19 17:48 thomas_blog 阅读(38) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; int main() { char buf[] = {1, 3, 4, 2, 6, 5}; int start = 0; int end = sizeof(buf) - 1; while(start < end) { 阅读全文
posted @ 2022-05-19 17:15 thomas_blog 阅读(29) 评论(0) 推荐(0) 编辑