#include<iostream>
using namespace std;
int main()
{
    float a,b,x;
    cout << "请分别输入a和b的值:";
    cin >> a >> b;
    x = a;
    a = b;
    b = x;
    cout << "a与b交换值后的结果是:" << a << '\t' << b << endl;
    system("pause");
    return 0;
}
Last modification:December 5th, 2018 at 07:41 pm
如果觉得我的文章对您有帮助,请随意赞赏:)