A pass by ref parameter that is initialized in another function produces invalid conversion error

后端 未结 0 937
失恋的感觉
失恋的感觉 2020-12-05 04:33
#include

//swap function

void swap(int &x, int &y )
{

int temp;
temp = x;
x = y;
y = temp;
}
<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题