yang131

导航

上一页 1 ··· 9 10 11 12 13 14 15 下一页

2020年10月22日 #

设计模式

摘要: 设计模式: 原则: 开闭原则,里氏替换原则,接口隔离,迪米特原则,单一职责,依赖倒置 创建:factory,singleton,prototype,builder,simple factory 结构:decorator,proxy,bridge,iterator 行为:observer,comman 阅读全文

posted @ 2020-10-22 17:47 NoNight 阅读(77) 评论(0) 推荐(0)

数据结构:树

摘要: CommonInc.h 1 #pragma once 2 #include <iostream> 3 #include <vector> 4 #include <deque> 5 #include <stack> 6 7 // BFS 使用了deque 8 // DFS 使用了递归,什么时候使用了s 阅读全文

posted @ 2020-10-22 17:45 NoNight 阅读(130) 评论(0) 推荐(0)

数据结构:Stack

摘要: // Stack.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> #include <stdio.h> #include <string> using namespace std; //这里用的是链表节点实现的Node stru 阅读全文

posted @ 2020-10-22 17:41 NoNight 阅读(144) 评论(0) 推荐(0)

数据结构:Deuque

摘要: #include <iostream> #include <stdio.h> #include <string> using namespace std; struct DequeNode { int Data; //无论是插入或者删除都需要更新prev next DequeNode* prev; 阅读全文

posted @ 2020-10-22 17:40 NoNight 阅读(124) 评论(0) 推荐(0)

基于创建子进程(进程管理和通信的设计模型)

摘要: 通过创建管道,捕获子进程(控制台进程)的输入和输出 // Console.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <Windows.h> #include <iostream> #include <string> #include <fstr 阅读全文

posted @ 2020-10-22 13:38 NoNight 阅读(183) 评论(1) 推荐(0)

表达式的解析

摘要: 表达式 阅读全文

posted @ 2020-10-22 13:24 NoNight 阅读(260) 评论(0) 推荐(0)

c++

摘要: c++ 11std::ref 引用 头文件#include <functional>std::cref const引用std::move right refstd::decay 类型转换std::bindstd::bind1ststd::make_sharedstd::tuple 多个值的pair集 阅读全文

posted @ 2020-10-22 13:10 NoNight 阅读(102) 评论(0) 推荐(0)

2020年9月10日 #

windows中新建文件菜单消失的解决办法

摘要: 具体解决办法: https://jingyan.baidu.com/article/cbcede07577f4702f40b4dfd.html 右键中新建文本文件 菜单消失: 注册表编辑器: 路径: 计算机\HKEY_CLASSES_ROOT\.txt\ 新建字符串 REG_SZ 数据txtfile 阅读全文

posted @ 2020-09-10 14:05 NoNight 阅读(379) 评论(0) 推荐(0)

2020年8月31日 #

彻底弄懂HTTP缓存机制及原理

摘要: 前言 Http 缓存机制作为 web 性能优化的重要手段,对于从事 Web 开发的同学们来说,应该是知识体系库中的一个基础环节,同时对于有志成为前端架构师的同学来说是必备的知识技能。但是对于很多前端同学来说,仅仅只是知道浏览器会对请求的静态文件进行缓存,但是为什么被缓存,缓存是怎样生效的,却并不是很 阅读全文

posted @ 2020-08-31 22:39 NoNight 阅读(362) 评论(0) 推荐(0)

2020年8月27日 #

c++17 auto非类型模板参数

摘要: //用auto非类型模板参数 #include <iostream> using namespace std; template<auto c> auto foot() { cout << c << endl; return c; } int main4() { foot<312>(); int m 阅读全文

posted @ 2020-08-27 11:12 NoNight 阅读(583) 评论(0) 推荐(0)

上一页 1 ··· 9 10 11 12 13 14 15 下一页