string
动态分配内存¶
new & delete
| C++ | |
|---|---|
1 | |
const¶
const is equal to #define in C.
It declares a variable to have a constant value. And it can't change in program.
| C++ | |
|---|---|
1 2 | |
A linenums="1" const in C++ defaults to internal linkage. - the compiler tries to avoiding creating storage for a const. - hold the value in its sample table - unless you make an explicit extern declaration.
| C++ | |
|---|---|
1 | |