运行 ❯
获取您的
专属
网站
×
更改定位
更改主题,深色/浅色
转到 Spaces
#include <iostream> #include <deque> using namespace std; int main() { // Create a deque called cars that will store strings deque<string> cars = {"Volvo", "BMW", "Ford", "Mazda"}; // Loop through the deque with an iterator for (auto it = cars.begin(); it != cars.end(); ++it) { cout << *it << "\n"; } return 0; }
沃尔沃
宝马
福特
马自达