001 简单的swap

#include <iostream> using namespace std; class A { public: int x; int getX() { return x; } }; void swap(A & a,A & b) { int tmp = a.x; a.x = b.x; b.x =
posted @ 2022-02-19 22:31  icefield817  阅读(53)  评论(0编辑  收藏  举报