摘要:
#include "common.h" typedef struct rb_node_t rb_node_t; struct rb_node_t { rb_node_t *m_parent; rb_node_t *m_left; rb_node_t *m_right; bool m_red; int
閱讀全文
摘要:
#define UNICODE #include <windows.h> #include <windowsx.h> #include <stdbool.h> #include <stdio.h> typedef struct ball_t ball_t; struct ball_t { int s
閱讀全文
摘要:
1. 三個排序算法和紅黑樹, 使得念頭通達 (預計時間 最多兩天, 明天2024/9/20和后天), 2024/9/27晚上去深圳退房 2. Java核心技術 (預計時間, 12天, 24章) 3. Vue前端框架 (預計時間,花完整3天)
閱讀全文
摘要:
// 移除引用獲取原始類型 template <typename _Tp> struct remove_reference { typedef _Tp type; }; template <typename _Tp> struct remove_reference<_Tp &> { typedef
閱讀全文
摘要:
C++完美轉(zhuǎn)發(fā)解析-CSDN博客 template<typename T> void func(T&& t) { // 這里面的t始終是左引用 // (T&&)t 是萬能引用(forward的實現(xiàn)), 實參(注意不是形參T&& t)是左引用,則是左引用,實參是右引用,則是右應用 // (typena
閱讀全文
摘要:
// 一元函數(shù) template <typename _Arg, typename _Result> struct unary_function { /// @c argument_type is the type of the argument typedef _Arg argument_type
閱讀全文
摘要:
defaultConfig下添加 build: { minify: false, }, import { fileURLToPath, URL } from "node:url"; import { defineConfig } from "vite"; import vue from "@vite
閱讀全文
摘要:
#include "common.h" typedef struct rb_node_t rb_node_t; struct rb_node_t { rb_node_t* m_parent; rb_node_t* m_left; rb_node_t* m_right; bool m_red; int
閱讀全文
摘要:
#include "common.h" #define ASIZE(a) (sizeof(a)/sizeof(a[0])) void bunble_sort(int* a, int size) { for (int i = 0; i < size - 1; i++) { for (int j = s
閱讀全文