C++笔记3:指针、引用、解引用
概念指针(Pointer) 一个指针变量保存的是 另一个变量的内存地址。 指针本身也是一个变量,有自己的地址、类型大小、可被修改(除非是 const指针)。 通过指针,你可以访问 / 操作指向那个地址的变量(前提是这个地址合法、类型匹配)。...
概念指针(Pointer) 一个指针变量保存的是 另一个变量的内存地址。 指针本身也是一个变量,有自己的地址、类型大小、可被修改(除非是 const指针)。 通过指针,你可以访问 / 操作指向那个地址的变量(前提是这个地址合法、类型匹配)。...
DescriptionGiven a string s, find the length of the longest substring without duplicate characters. Example 1: Input: s ...
DescriptionYou are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse ...
DescriptionGiven an array of integers nums and an integer target, return indices of the two numbers such that they add up to ...
编译要做什么在预处理阶段生成了一个“干净”的源码文件,接下来的任务是把这个源码转换成汇编代码或者机器码。这一阶段主要包括:词法分析 → 语法分析 → 语义分析 → 中间表示及优化 → 汇编生成。 词法分析目标:把字符流(源码)切分成有意义的最小单元:...
C++ Preprocessing预处理要做什么预处理是最早的阶段,将处理我们写的 .cpp/.h 源码 + 宏 + #include 指令等“指令层面”的内容,生成一个“干净的、中间的源码”给后面的编译器看。 预处理阶段具体的工作包括: ...