~cpp #include <iostream.h> void swap(int *, int *); void main() { int a = 1, b = 18; cout << "a = " << a; cout << "b = " << b << endl; swap(&a,&b); cout << " swap후 a = " << a; cout << " swap후 b = " << b << endl; } void swap(int *n, int *m) { int save; save = *n; *n = *m; *m = save; }