摘要: 数组可以不指定维度,维度由初始值的数量决定。使用数组时,编译器一般会将其转换成指针。 阅读全文
posted @ 2018-09-08 09:56 archerzon 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 引用不是对象. 不能对尾后迭代器和尾后指针执行解引用或递增操作。 int类型可以用 size()测量长度 1 #include <iostream> 2 #include <vector> 3 #include <string> 4 using namespace std; 5 int main() 阅读全文
posted @ 2018-09-08 09:37 archerzon 阅读(84) 评论(0) 推荐(0) 编辑