일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 코딩테스트
- 코테
- 코딩
- 자바정리
- SNS
- 개인프로젝트
- Python
- 사물인터넷
- 개발자
- 백준
- 풀스택프레임워크
- 이웃한 칸
- java
- Reflex
- 코딩독학
- 자바독학
- Project
- 개발
- backend
- 모의 주식
- 프로그램
- 프로그래밍
- java정리
- 코스닥
- C++
- 프로그래머스
- 자바
- 주가예측
- 빅데이터
- frontend
- Today
- Total
목록C++ Programming (41)
Creative Code
※main.cpp파일 #include #include "stack.h" int main() { Stack s1(10); Stack s2(100); s1.push(100); //구조체 자료는 인자를 전달할 때 오버헤드를 줄이기 위해 포인터를 쓴다. s1.push(200); s1.push(300); std::cout
※main.cpp파일 #include #include "stack.h" int main() { Stack s1(10); Stack s2(100); s1.push(100); //구조체 자료는 인자를 전달할 때 오버헤드를 줄이기 위해 포인터를 쓴다. s1.push(200); s1.push(300); std::cout
※main.cpp파일 #include #include "array.h" int main() { std::cout
※main.cpp파일 #include #include #include "list.h" int main(void) { List list; //initList(); list.insertFirstNode(4); //[4] std::cout next; Node *ptr2 = this->ptr; while (ptr){ if (ptr->data == data){ break; } ptr = ptr->next; ptr2 = ptr2 ->next; } if (ptr){ ptr2->next = ptr->next; delete ptr; } }
※main.cpp파일 #include #include "string.h" int main() { String s1; String s2 = "hello, world"; // String s2("hello,world"); //String s2 = 0;// NULL String s3 = s2; // String s3(s2); s1 = s2; String s4 = " IoT"; s1 = s2 + s4; s1 = "hello, "; //String tmp("hello, "); if (s1 == s2) std::cout
※main.cpp파일 #include #include "string.h" int main() { String s1; String s2 = "hello, world"; // String s2("hello,world"); //String s2 = 0;// NULL String s3 = s2; // String s3(s2); s1 = s2; String s4 = " IoT"; s1 = s2 + s4; s1 = "hello, "; //String tmp("hello, "); if (s1 == s2) std::cout