题解列表

筛选

1068: 二级C语言-温度转换

摘要:直接循环打印。#include<bits/stdc++.h> using namespace std;   int main(){     int C;     double F;    ……

c语言巧妙解答

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char a[40];    int i,n;    while(~s……

C语言-九九乘法表

摘要:解题思路:两次for循环,这里用到了另一个知识点C语言中的% 2d是printf()函数的输出格式。表示将数字按宽度为2,采用右对齐方式输出,若数据位数不到2位,则左边补空格。相反,负则表示左对齐。注……

宏定义之找最大数-C语言

摘要:解题思路:    两两比较注意事项:参考代码:#include<stdio.h>#include<math.h>#define MAX(x,y,z) (x>y?x:y)>z?(x>y?x:y):zin……

宏定义之闰年判断-C语言

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAR(y) y=n%400int main(){     int n,y;     scanf("%d",……

宏定义的练习-C语言

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define area a%bint main(){    int a,b;    scanf("%d……

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

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