c语言中swap是什么意思?

2025年03月01日 17:35
有1个网友回答
网友(1):

一般是交换两个变量的值的函数名。
如void swap(int &a, int &b)
{int t=a;a=b;b=t;}