摘要: #pre 先来看看C风格数组 #include<iostream> using namespace std; int main(int argc, char const *argv[]) { //array测试 int arr[10]; arr[0] = 1; int arr1[] = {1,2,3 阅读全文
posted @ 2023-05-06 19:23 无形深空 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 是什么 回调函数是一种特殊的函数,它不是在程序中直接调用的,而是由程序在特定事件发生时进行调用的。回调函数通常作为参数传递给其他函数,而这些函数在执行时会将回调函数作为其内部的一部分来调用。 为什么 解耦. 回调函数的好处在于它们可以让程序更加模块化和可扩展。 怎么样 例: #include<ios 阅读全文
posted @ 2023-05-06 12:33 无形深空 阅读(57) 评论(0) 推荐(0) 编辑
摘要: :tomato: `sort()` ``` template constexpr void sort( RandomIt first, RandomIt last, Compare comp ); ``` :tomato: `max()` ``` template const T& max(cons 阅读全文
posted @ 2023-05-06 00:10 无形深空 阅读(15) 评论(0) 推荐(0) 编辑