| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 |
- 그래프
- 오에스
- 알고리즘
- 브루트포스
- 코딩
- 구현
- DP
- 코테
- OS
- 정석
- 문제풀이
- Computer science
- Operating System
- 컴퓨터공학과
- 북리뷰
- 자료구조
- 백준
- Stack
- coding
- vector
- c++
- 너비우선탐색
- cs
- 정석학술정보관
- bfs
- 컴공과
- 스택
- 개발
- 오퍼레이팅시스템
- 컴공
- Today
- Total
목록linkedlist (2)
Little Jay
int형 LinkedList 데이터 타입은 바꾸거나 typedef로 지정을 해주거나 할 수 있다. 중간에 데이터를 넣는 것은 구현하지 않았다. #include #include using namespace std; class intNode { private: int dat; intNode* next; intNode(int x) { this->dat = x; this->next = NULL; } friend class intLinkedList; }; class intLinkedList { private: intNode* head; intNode* tail; public: intLinkedList() :head(NULL), tail(NULL) { } ~intLinkedList() {} void addFront..
댓글로 지적해주시면 감사하겠습니다 int type의 LinkedList 입니다 #include #include using namespace std; class intNode { private: int dat; intNode* next; intNode(int x) { this->dat = x; this->next = NULL; } friend class intLinkedList; }; class intLinkedList { private: intNode* head; intNode* tail; public: intLinkedList() :head(NULL), tail(NULL) { } ~intLinkedList() {} void addFront(int x) { intNode* n = new intNode(x..