1069: 二级C语言-寻找矩阵最值 摘要:#include<bits/stdc++.h> using namespace std; int main(){ int n,x; cin >> n; int …… 题解列表 2021年12月13日 0 点赞 0 评论 345 浏览 评分:0.0
1068: 二级C语言-温度转换 摘要:直接循环打印。#include<bits/stdc++.h> using namespace std; int main(){ int C; double F; …… 题解列表 2021年12月13日 0 点赞 0 评论 388 浏览 评分:0.0
1017: [编程入门]完数的判断——不用指针数组。 摘要:解题思路:先判断是否是完数,当是完数时再考虑计算和输出因子。但感觉比较麻烦,不够减简洁。注意事项:参考代码:#include<stdio.h>int isPerfectNumber(int numbe…… 题解列表 2021年12月13日 0 点赞 0 评论 352 浏览 评分:0.0
c语言巧妙解答 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[40]; int i,n; while(~s…… 题解列表 2021年12月13日 0 点赞 0 评论 366 浏览 评分:0.0
C语言-九九乘法表 摘要:解题思路:两次for循环,这里用到了另一个知识点C语言中的% 2d是printf()函数的输出格式。表示将数字按宽度为2,采用右对齐方式输出,若数据位数不到2位,则左边补空格。相反,负则表示左对齐。注…… 题解列表 2021年12月13日 0 点赞 0 评论 420 浏览 评分:0.0
宏定义之找最大数-C语言 摘要:解题思路: 两两比较注意事项:参考代码:#include<stdio.h>#include<math.h>#define MAX(x,y,z) (x>y?x:y)>z?(x>y?x:y):zin…… 题解列表 2021年12月13日 0 点赞 0 评论 335 浏览 评分:0.0
纯for循环 刚入门表示标准解答看不懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; double b=0.0,m,c,a=0.0,d,e; scanf("%lf…… 题解列表 2021年12月13日 0 点赞 0 评论 606 浏览 评分:0.0
宏定义之闰年判断-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAR(y) y=n%400int main(){ int n,y; scanf("%d",…… 题解列表 2021年12月13日 0 点赞 0 评论 337 浏览 评分:0.0
宏定义的练习-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define area a%bint main(){ int a,b; scanf("%d…… 题解列表 2021年12月13日 0 点赞 0 评论 334 浏览 评分:0.0
带参数宏定义练习-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define change(a,b) temp=a,a=b,b=tempint main(){int a,b,temp;scanf("…… 题解列表 2021年12月13日 0 点赞 0 评论 376 浏览 评分:0.0