题解 1036: [编程入门]带参数宏定义练习

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

带参数宏定义练习-C语言

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define change(a,b) temp=a,a=b,b=tempint main(){int a,b,temp;scanf("……

可以用捷径的方法

摘要:解题思路:注意哈,咱满足题目需求就可以了注意事项:注意不要打错字了参考代码:#include<stdio.h>int main(){ int a,b,x; scanf("%d %d",&a,&b); ……

1036 define帮你自己造定义

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define change(a,b) t=a,a=b,b=t;int main(){    int a,b,t;    scanf(……

【C++较复杂版解法】两种方法

摘要:两种方法主函数代码相同,宏定义方法不同参考代码://第一种 #include <iostream> using namespace std; #define swap(a,b) {int m;m……

python 超简单写法

解题思路:非常简单注意事项:参考代码:a,b=map(int,input().strip().split())print(b,a,end="")

带参宏定义

摘要:解题思路:宏定义的本质是替换过程注意事项:未知变量在主函数中定义参考代码:#include<iostream>using namespace std;#define swap(x,y) {t=x,x=……