摘要:
简单来说 Class 是一种 Type。 A class is a type. Its name becomes a class-name ([class.name]) within its scope. 来自 C++ Draft int, char 等是基本类型。 Class 是复合类型或自定义类 阅读全文
摘要:
#include <iostream> #include <vector> int main() { std::vector<int> arr = {1, 2, 3}; const int &a = arr[0]; std::cout << a << '\n'; arr.erase(arr.begi 阅读全文