일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- c언어
- Data Structure
- Unity
- c#
- dart 언어
- jupyter lab
- 포인터
- 플러터
- 도커
- c# 윈폼
- c# 추상 클래스
- 구조체
- 다트 언어
- git
- gitlab
- c# winform
- C# delegate
- HTML
- github
- Python
- Algorithm
- 유니티
- C언어 포인터
- C++
- Houdini
- vim
- docker
- jupyter
- Flutter
- 깃
Archives
- Today
- Total
목록메모리 동적 (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