摘要: #include<vector> // 包含头文件vector ... using namespace std; // vector包含在std中,因此必须包含std::vector vector <int> vi; // create a zero-size array of int int n; 阅读全文
posted @ 2020-05-31 08:48 孱陵 阅读(584) 评论(0) 推荐(0) 编辑
摘要: #include < array > // 需要包含该头文件 ... using namespace std; // array位于std中 array < int, 5 > ai; // create array object of 5 ints array < double, 4 > ad = 阅读全文
posted @ 2020-05-31 08:22 孱陵 阅读(480) 评论(0) 推荐(0) 编辑