C++ Notes
文章平均质量分 50
Joshhesu
A long way to go.
展开
-
【C++ Function】Talk about reference ‘&‘
The reference can only be set by initialization, and its value cannot be set or changed by assignment. Simply put, it must be initialized at the statement of reference. This is a very big difference between references and pointers. //correct, initial.原创 2021-06-24 19:46:09 · 170 阅读 · 3 评论 -
【C++ Function】inline function
TODO原创 2021-06-24 16:48:36 · 90 阅读 · 0 评论 -
【C++ Function】Three ways to pass parameters
If we wants to make a parameter-passing, there are usually thee ways to go, namely common parameters, pointer parameters and quoting parameters. Common parameters The parameters passed into the function in this form is formal parameters, which means is do原创 2021-06-17 11:28:40 · 90 阅读 · 0 评论 -
【C++ STL】pointer access of vector
When our vector is declared in the form of a pointer, we need to access its elements through an iterator, which cannot simply be similar to C language, using pointers and arrays.The sample code is as follows. #include <bits/stdc++.h> using namespace原创 2021-06-16 19:18:45 · 148 阅读 · 0 评论