2023 1학기/c++

iostream> void swap(int* a, int* b) { int temp = *a; *a = *b; *b = temp; } void swap(char* a, char* b) { char temp = *a; *a = *b; *b = temp; } void swap(double* a, double* b) { double temp = *a; *a = *b; *b = temp; } int main(void) { int num1 = 20, num2 = 30; swap(&num1, &num2); std::cout
코딩신생아(0o0)
'2023 1학기/c++' 카테고리의 글 목록 (2 Page)