📄 pr24001.cpp
字号:
////////////////////////////////////////
// File Name: pr24001.cpp
////////////////////////////////////////
#include <iostream>
#include <vector>
int main()
{
// Create a vector object.
std::vector<int> intVector;
// Populate the vector.
for (int x=0; x<10; ++x)
intVector.push_back(x);
// Display the contents of the vector.
std::cout << "Contents of the vector: " << std::endl;
std::vector<int>::iterator it = intVector.begin();
while (it != intVector.end())
{
std::cout << *it << std::endl;
++it;
}
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -