C语言程序设计教程(第三版)课后习题9.1 (C语言代码) 摘要:解题思路:注意事项:自己写的,不是很懂,但是对了,#define N 1#define S 2这没弄明白参考代码:#include<stdio.h>#define N 1#define S 2vo…… 题解列表 2019年01月04日 0 点赞 0 评论 385 浏览 评分:0.0
直接输出交换(偷奸耍滑) 摘要:参考代码:#include<stdio.h> #define swap(a, b) printf("%d %d", b, a); int main(){ int a, b; scanf("…… 题解列表 2019年01月13日 1 点赞 0 评论 617 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题9.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define j(a,b) t=a+b; b=t-b; a=t-a;int main(){ int a,b,t; scanf("%d%…… 题解列表 2019年02月01日 0 点赞 0 评论 335 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题9.1 (C语言代码) 摘要:解题思路:注意事项: #define 标识符 字符串; 例如#define m a*b;其中a*b的值就是m,在主函数中m就是调用a*b;带参宏定义的一般形式为: #define 宏名(形参表) …… 题解列表 2019年04月06日 0 点赞 0 评论 634 浏览 评分:0.0
[编程入门]带参数宏定义练习 (C语言代码)。。。。。 摘要:解题思路:无注意事项:无参考代码:#include<stdio.h>#define N(x,y) t=x;x=y;y=t;int main(){ int x,y,t; scanf("%d%d",&x,…… 题解列表 2019年05月01日 0 点赞 0 评论 478 浏览 评分:0.0
[编程入门]带参数宏定义练习 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define SWAP(a,b) {int t;t=a;a=b;b=t;} int main() { int a…… 题解列表 2019年05月03日 0 点赞 0 评论 456 浏览 评分:0.0
[编程入门]带参数宏定义练习 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define fun(m,n) t=m,m=n,n=t;int main(){ int m,n,t; scanf("%d",&m); …… 题解列表 2019年05月04日 0 点赞 0 评论 468 浏览 评分:0.0
[编程入门]带参数宏定义练习-题解(C语言代码) 摘要:#include #include void swap(int *a,int *b) { int temp; temp = *a; *a = *b; *b = temp; …… 题解列表 2019年07月27日 0 点赞 0 评论 580 浏览 评分:0.0
[编程入门]带参数宏定义练习-题解(C语言代码) 摘要:#include #define N(x,y,t) t=x,x=y,y=t int main() { int a,b,t; scanf("%d%d",&a,&b); N(a,b,t)…… 题解列表 2019年08月20日 0 点赞 0 评论 887 浏览 评分:0.0
[编程入门]带参数宏定义练习-题解(Java代码) 摘要:import java.util.Scanner; public class Main { static Scanner sc=new Scanner(System.in); //在Main…… 题解列表 2019年10月27日 0 点赞 0 评论 694 浏览 评分:0.0