일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 정보과학
- 수학영재원
- DBMS
- 정보올림피아드
- 참조은요양병원
- 다중반복문
- 풀이&소스코드저작권:왕유승
- 프로그래밍
- if문
- 영재교육원
- 정보영재원
- 리눅스 명령어
- 리눅스
- 알고리즘
- API
- 배열
- For문
- 문제출저:www.dovelet.com
- 독서 감상문
- IT
- 제어문
- Linux
- C++
- Backdoor
- 자료구조
- 반복문
- C
- 백도어
- 독후감
- c언어
Archives
- Today
- Total
되는대로 살자
list 본문
#include <stdio.h>
#include <list>
#include <stack>
#include <queue>
using namespace std;
int main()
{
int k;
list<int> i;
i.push_back(1);
i.push_back(2);
i.push_front(3);
for(k=0;k<3;k++)
{
printf("%d",i.back());
i.pop_back();
}
return 0;
}
#include <list>
#include <stack>
#include <queue>
using namespace std;
int main()
{
int k;
list<int> i;
i.push_back(1);
i.push_back(2);
i.push_front(3);
for(k=0;k<3;k++)
{
printf("%d",i.back());
i.pop_back();
}
return 0;
}
'2009~2014 > C/C++' 카테고리의 다른 글
queue (0) | 2011.05.14 |
---|---|
stack (0) | 2011.05.14 |
[C언어 기출문제&풀이] 인터프리터(Interpreter) (0) | 2011.05.14 |
[C언어 기출문제&풀이] 그래픽 편집기(Graphical Editor) (0) | 2011.05.13 |
[C언어 기출문제&풀이] LCD 디스플레이 (0) | 2011.05.13 |