Variables and Types - Learn C++ - Free Interactive C++ Tutorial https://www.learn-cpp.org/en/Variables_and_Types

C++——Learn the Basics2 Variables and Types 变量 类型
这段不用怎么看,基本就是在说

  1. 有不同的类型
    比如整数,就是0 1 2
    浮点型,就是1.2 3.5 这样有小数点的
    void就表示没有内容,是空的

  2. 这些类型占的空间是不一样的,可以表示的数字范围是不一样的
    但是暂且用不到,在比较深入的时候才会区别
    现在就当作是定义就好了

之后就是比较复杂的类型,struct class,需要专门的章节来说
C++——Learn the Basics2 Variables and Types 变量 类型
typdefs 相当于取了一个别名,基础的时候一般不用
C++——Learn the Basics2 Variables and Types 变量 类型
枚举
图中说的不是很清楚
C++——Learn the Basics2 Variables and Types 变量 类型

相关文章:

  • 2022-02-02
  • 2021-11-30
  • 2021-12-24
  • 2021-11-23
  • 2021-07-28
  • 2021-05-31
猜你喜欢
  • 2021-07-28
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2021-06-21
  • 2022-01-11
相关资源
相似解决方案