ref:https://dojang.io/mod/page/view.php?id=654
#define SWAP(a, b, type) do { \ type temp; \ temp = a; \ a = b; \ b = temp; \ } while (0)
'Programming > C,C++' 카테고리의 다른 글
GLFW Hello World (0) | 2017.03.19 |
---|---|
rand() / srand() (0) | 2017.03.17 |
int (*p)[10] vs int *p[10] (0) | 2017.03.10 |
Recursive 1..10 더하기 예제 (0) | 2017.03.09 |
#pragma pack, pop[펌] (0) | 2017.02.27 |