Skip to content

Instantly share code, notes, and snippets.

@Jack2
Created November 28, 2012 17:15
Show Gist options
  • Save Jack2/4162618 to your computer and use it in GitHub Desktop.
Save Jack2/4162618 to your computer and use it in GitHub Desktop.
[C++]STL_deque_example
#include <iostream>
#include <deque>
using namespace std;
int main()
{
deque<int> JacksDeque;
int soo;
cout << "수를 입력 하시오. (마지막 입력은 0) :" << endl;
do{
cin >> soo;
JacksDeque.push_back(soo);
} while(soo);
cout << "JacksDeque 의 크기는 " << (int) JacksDeque.size() << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment