-
Discrete Mathematics (H) Lecture 1-3 Notes
Logic Definition: Proposition A proposition is a declarative statement that is either true or false. Usually, propositions are condition-based. We can ... -
C++元编程教程00:模板基础回顾
C++模版基础回顾 前言:为什么我们需要模版? 在使用编程语言进行程序设计的时候,有这样一个概念会反复的出现,这就是抽象(abstraction)。以一个简单的返回两数最大值的函数max为例: 123auto max(int lhs, int rhs) -> int { return lhs > rhs ? lhs : rhs;} 这个函数可以看作对一...