整数大小比较 摘要:解题思路:注意事项: = 是赋值,==是等于。参考代码:、#include<stdio.h>int main(){ int a,b; scanf("%d %d…… 题解列表 2023年10月08日 0 点赞 0 评论 505 浏览 评分:0.0
完数的判断(不用数组,for循环即可) 解题思路:先判断要求范围内的完数。在判断的过程中,如果是完数,按格式打印一下这个数,然后找到该完数的每一个因子(除去本身)并按格式打印每一个因子;如果不是完数,就继续判断下一个数。注意事项:1.按格式的打印输出要有一个变量值来辅助处理换行2.打印输出要注意空格参考代码:#include 题解列表 2023年10月08日 0 点赞 0 评论 755 浏览 评分:9.9 用栈解决这个问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>#define maxsize 101typedef struct{…… 题解列表 2023年10月08日 0 点赞 0 评论 727 浏览 评分:0.0 判断闰年(宏定义,给自己找找乐子) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define YEAR(a) a%100?(a%4?'N':'Y'):(a%400?'N&…… 题解列表 2023年10月08日 0 点赞 0 评论 550 浏览 评分:0.0 星期判断机(( •̀ ω •́ )✧) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); switch(n) { cas…… 题解列表 2023年10月08日 0 点赞 0 评论 741 浏览 评分:0.0 C语言解决pell问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>long long a[1000001] = {}, b[1000001]; //声明储存输出和输入的数组int n, i, j, k…… 题解列表 2023年10月08日 0 点赞 1 评论 1162 浏览 评分:9.9 [编程入门]二维数组的转置 摘要:解题思路:先输入所需字符,然后交换。注意事项:效率不高,但易理解参考代码:#include<stdio.h>int main(){ int str[3][3] ; for (int i = 0; i …… 题解列表 2023年10月07日 0 点赞 0 评论 470 浏览 评分:0.0 输入输出练习之精度控制3 摘要:解题思路:看好题目注意事项:数字指定占4个字符宽靠右对齐 %4d ,单精度浮点数保留2位小数 %.2f ,双精度保留12位小数 %.12lf参考代码:#include<stdio.h>int…… 题解列表 2023年10月07日 0 点赞 0 评论 1766 浏览 评分:9.9 收费(不能想多了,超过20之后,全部按新的收费) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { double a; scanf("%lf",&a); double sum=0; if(…… 题解列表 2023年10月07日 1 点赞 0 评论 585 浏览 评分:0.0 C语言思路简单,易懂!!! 理解万岁 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define len sizeof (Stack)typedef struct s{ char data[300]; i…… 题解列表 2023年10月07日 0 点赞 0 评论 688 浏览 评分:0.0 « 12...444445446447448449450...29572958 »
用栈解决这个问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>#define maxsize 101typedef struct{…… 题解列表 2023年10月08日 0 点赞 0 评论 727 浏览 评分:0.0
判断闰年(宏定义,给自己找找乐子) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define YEAR(a) a%100?(a%4?'N':'Y'):(a%400?'N&…… 题解列表 2023年10月08日 0 点赞 0 评论 550 浏览 评分:0.0
星期判断机(( •̀ ω •́ )✧) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); switch(n) { cas…… 题解列表 2023年10月08日 0 点赞 0 评论 741 浏览 评分:0.0
C语言解决pell问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>long long a[1000001] = {}, b[1000001]; //声明储存输出和输入的数组int n, i, j, k…… 题解列表 2023年10月08日 0 点赞 1 评论 1162 浏览 评分:9.9
[编程入门]二维数组的转置 摘要:解题思路:先输入所需字符,然后交换。注意事项:效率不高,但易理解参考代码:#include<stdio.h>int main(){ int str[3][3] ; for (int i = 0; i …… 题解列表 2023年10月07日 0 点赞 0 评论 470 浏览 评分:0.0
输入输出练习之精度控制3 摘要:解题思路:看好题目注意事项:数字指定占4个字符宽靠右对齐 %4d ,单精度浮点数保留2位小数 %.2f ,双精度保留12位小数 %.12lf参考代码:#include<stdio.h>int…… 题解列表 2023年10月07日 0 点赞 0 评论 1766 浏览 评分:9.9
收费(不能想多了,超过20之后,全部按新的收费) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { double a; scanf("%lf",&a); double sum=0; if(…… 题解列表 2023年10月07日 1 点赞 0 评论 585 浏览 评分:0.0
C语言思路简单,易懂!!! 理解万岁 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define len sizeof (Stack)typedef struct s{ char data[300]; i…… 题解列表 2023年10月07日 0 点赞 0 评论 688 浏览 评分:0.0