일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- unreal engine4
- if
- dictation
- 파이썬
- Java
- Project
- Notting hill
- for
- html5
- font weight
- Euler
- 알고리즘
- C++
- UE4
- Unreal
- CSS
- std
- 연결리스트
- cow
- python
- bool
- Polymorphism
- html
- codecademy
- Bull
- endl
- 코딩도장
- 영알남
- cout
- 파이선
Archives
- Today
- Total
목록연결리스트 (2)
연결 리스트 - 큐
Queue.h 파일 #includeusing namespace std; class Node {Node* link;int data;public:Node(int val = 0) :data(val), link(NULL) {}Node* getLink() { return link; }void setLink(Node* next) { link = next; }void display() { cout setLink(p);rear = p;}} Node* dequeue() {if (isEmpty()) return NULL;Node* p = front;front = front->getLink();if (front == NULL)rear = NULL;return p;} Node* peek() { return front; }vo..
Programming/기타 언어들
2017. 4. 23. 18:42
연결 리스트 - 스택
Student.h 파일 #include #include#include#includeusing namespace std; const int MAX_STRING = 100; class Student {int id;char name[MAX_STRING];char dept[MAX_STRING];public:Student(int i = 0, char* n = "", char* d = ""){set(i, n, d);}void set(int i, char* n, char* d) {id = i;strcpy_s(name, n);strcpy_s(dept, d);}void display() {cout
Programming/기타 언어들
2017. 4. 23. 17:21