
The Practice of Programming
AliceWanderAI
北邮自动化学院,研究方向:图像处理,机器学习
展开
-
C++ STL六大组件-6-Allocator(分配器)
C++ STL六大组件-简析 ------------------------------------------ C++ STL六大组件-1-Container(容器) C++ STL六大组件-2-Adapter(适配器) C++ STL六大组件-3-Algorithm(算法) C++ STL六大组件-4-Iterator(迭代器) C++ STL六大组件-5-Function object(函数对象) C++ STL六大组件-6...原创 2020-10-20 21:44:08 · 877 阅读 · 0 评论 -
C++ STL六大组件-5-Function object(函数对象)
C++ STL六大组件-简析 ------------------------------------------ C++ STL六大组件-1-Container(容器) C++ STL六大组件-2-Adapter(适配器) C++ STL六大组件-3-Algorithm(算法) C++ STL六大组件-4-Iterator(迭代器) C++ STL六大组件-5-Function object(函数对象) C++ STL六大组件-6...原创 2020-10-20 21:33:50 · 1515 阅读 · 0 评论 -
C++ STL六大组件-4-Iterator(迭代器)
视C++为一个语言联邦: 理解C++的全貌,学习C++的编程范式:过程/面向对象/函数式/元编程/泛型编程。 尽量以const/enum/inline替换#define:对于单纯的常量,最好用const对象/enums来替换#define,对于形似函数的宏,最好用inline函数替换#define. 尽可能使用const:const可以用于任何作用域内的对象/函数参数/函数返回类型/成员函数本体。可以帮助避免出错。 确定对象被使用前已经先被初始化:读取未初始化的值会导致不明确的行为。 了解C++ .原创 2020-10-16 20:42:15 · 812 阅读 · 0 评论 -
Improve Path within 100 days
Operating system Coding language: C++ Algorithms Sorting Data structures Mathematics Graphs Recursion System Design Linux Cuda Leetcode: 5*100 day (1*easy+3*medium+1*hard) 100天的学习提升计划,每半个月至少进行一次面试实战。待续。。。 ...原创 2020-10-14 20:58:13 · 224 阅读 · 0 评论 -
《The Practice of Programming》-Preface(Learning Notes)
从本篇开始记录研读《The Practice of Programming》的笔记,以待后面温习。 本书分享了很多通用的工程师概念,这些概念独立于编程语言,操作系统或编程范式。无论你使用何种编程语言,都可以从本书获取有价值的知识。 面向多种读者: a).上过编程课的学生,可帮助他们成为更好的编程者,并拓展一些课上不会提到的topic; b).工作中包含编程内容的工程师,可帮助他们编程更有效...原创 2019-01-28 15:26:51 · 299 阅读 · 0 评论 -
《The Practice of Programming》-Chapter1 Style(Learning Notes)
第一章:风格 It is an old observation that the best writers sometimes disregard the rules of rhetoric. When they do so, however, the reader will usually find in the sentence some compensating merit, attain...原创 2019-01-28 17:22:00 · 232 阅读 · 0 评论 -
C++学习笔记【第二部分第十章:泛型算法】
泛型算法的定义 C++标准库提供了很多独立于任何特容器的算法:这些算法可用于不同类型的容器和不同类型的元素。 大多数算法都定义在头文件algorithm中,因此要使用这些泛型算法,需要#include<algorithm> 标准库还在头文件numeric中定义了一组数值泛型算法。 一般来说,这些算法并不直接操作容器,而是遍历由两个迭代器制定的一个元素范围。 迭代器令算法不依赖于容...原创 2019-02-13 10:40:11 · 231 阅读 · 0 评论