Created
November 28, 2012 17:15
-
-
Save Jack2/4162618 to your computer and use it in GitHub Desktop.
[C++]STL_deque_example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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