1. Basics of C++
Every time we start to learn a new language, it's a good idea to start with a simple "Hello, World!"!
Every time we start to learn a new language, it's a good idea to start with a simple "Hello, World!"!
Scope
1. Value categories (lvalues and rvalues)
pointers are objects that hold the address of another object. This address can be deferenced using the dereference operator (*) to get the object at that address.
We can define a new name for an existing type.
1. Defining a class
An array is a container data type that stores a sequence of values contiguously (meaning each element is placed in an adjacent memory location, with no gaps). Arrays allow fast, direct access to any element. They are conceptually simple and easy to use, making them the first choice when we need to create and work with a set of related values.
1. Introduction to smart pointers and move semantics
| 方法 | 调用语法 | 返回类型 | 功能 | 示例代码 |