1 solutions

  • 0
    @ 2025-11-5 19:05:17

    C++ :

    #include<iostream>
    #define SWAP(a,b) int t=a; a=b; b=t;
    using namespace std;
    int main()
    {
    	int a,b;
    	cin>>a>>b;
    	SWAP(a,b);
    	cout<<a<<" "<<b<<endl;
    	return 0;
    }
    
    • 1

    C语言程序设计教程(第三版)课后习题9.1

    Information

    ID
    19161
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    (None)
    # Submissions
    0
    Accepted
    0
    Uploaded By