C++笔记3:指针、引用、解引用

概念指针(Pointer) 一个指针变量保存的是 另一个变量的内存地址。 指针本身也是一个变量,有自己的地址、类型大小、可被修改(除非是 const指针)。 通过指针,你可以访问 / 操作指向那个地址的变量(前提是这个地址合法、类型匹配)。...

LeetCode算法笔记03:Longest Substring Without Repeating Characters

DescriptionGiven a string s, find the length of the longest substring without duplicate characters. Example 1: Input: s ...

LeetCode算法笔记02:Add Two Numbers

DescriptionYou are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse ...

LeetCode算法笔记01:Two Sum

DescriptionGiven an array of integers nums and an integer target, return indices of the two numbers such that they add up to ...

C++笔记2:编译(Compilation)

编译要做什么在预处理阶段生成了一个“干净”的源码文件,接下来的任务是把这个源码转换成汇编代码或者机器码。这一阶段主要包括:词法分析 → 语法分析 → 语义分析 → 中间表示及优化 → 汇编生成。 词法分析目标:把字符流(源码)切分成有意义的最小单元:...

C++笔记1:预处理(Preprocessing)

C++ Preprocessing预处理要做什么预处理是最早的阶段,将处理我们写的 .cpp/.h 源码 + 宏 + #include 指令等“指令层面”的内容,生成一个“干净的、中间的源码”给后面的编译器看。 预处理阶段具体的工作包括: ...


本网站由 Nooobad 使用 Stellar 1.33.1 主题创建。
除非另有说明,本博客中的所有文章均采用 CC BY-NC-SA 4.0 许可协议。转载时请注明文章来源。