일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 도커
- 유니티
- vim
- C# delegate
- 깃
- Flutter
- Python
- github
- C++
- jupyter
- Data Structure
- 다트 언어
- dart 언어
- HTML
- gitlab
- c# winform
- Algorithm
- 구조체
- c# 윈폼
- c# 추상 클래스
- Unity
- Houdini
- git
- 포인터
- c#
- jupyter lab
- c언어
- C언어 포인터
- 플러터
- docker
Archives
- Today
- Total
목록stack (1)
nomad-programmer
[C] 동적 할당으로 간단히 구현해본 stack
#include #include #include #include void SetData(unsigned short** dst, unsigned short** src, const short size) { for (int i = 0; i < size; i++) { *(*(dst)+i) = *(*(src)+i); } } void Push(unsigned short** ptr, short* curt, const short value) { (*curt)++; unsigned short* new_data = (unsigned short*)malloc(((*curt) + 1) * sizeof(short)); SetData(&new_data, ptr, *curt); *(new_data + (*curt)) = value..
Programming/C
2020. 6. 13. 16:02