随笔分类 -  编程技巧

一些编程小技巧的记录与分享
摘要:一般做法 int a,b; int temp; temp = a; a = b; b = temp; 巧妙方法 int a,b; a = a^b; b = a^b; a = a^b; 这样就不需要第三个变量 阅读全文
posted @ 2023-08-13 18:52 上官梦舞 阅读(36) 评论(0) 推荐(0)