简单的替代 摘要:解题思路:无它,只用把判断条件用宏定义表示注意事项:参考代码:#include<stdio.h>#define LAEP_YEAR(y) y%4==0&&y%100!=0||y%400==0int m…… 题解列表 2024年09月11日 1 点赞 0 评论 826 浏览 评分:0.0
利用简单俩for解决 摘要:解题思路:题目要求用6.2f的格式,意思就是用占位符 %6.2f 的形式来输出注意事项:参考代码:#include<stdio.h>int main(){ float n; scanf("%f",&n…… 题解列表 2024年09月11日 0 点赞 0 评论 758 浏览 评分:0.0
使用c语言函数 摘要:解题思路:使用c语言自带的数学函数注意事项:参考代码:#include<stdio.h>#include<math.h>#define compare(a,b,c) d=fmax(a,b),e=fma…… 题解列表 2024年09月11日 1 点赞 0 评论 1204 浏览 评分:0.0
[编程入门]电报加密 C语言 摘要:解题思路:gets是不是只能在C语言中使用注意事项:参考代码:#include<stdio.h>#include <string.h>using namespace std;int main(){ …… 题解列表 2024年09月11日 0 点赞 0 评论 910 浏览 评分:0.0
使用C++sort函数 摘要:解题思路:注意sort的头文件是<algorithm>注意事项:参考代码:#include<iostream>#include <algorithm>using namespace std;int m…… 题解列表 2024年09月11日 0 点赞 0 评论 547 浏览 评分:0.0
c语言——直接输出数组 ```c#include#include#defineMAX101intmain(){intn;intnum[MAX][MAX],num_1[MAX][MAX];while(scanf("%d",&n)!=EOF){for(inti=0;i 题解列表 2024年09月11日 0 点赞 0 评论 472 浏览 评分:0.0 详细注释版(c语言代码) ```c#include#include#defineMAX101//定义矩阵的最大维度为101#definemax(a,b)if(a 题解列表 2024年09月11日 0 点赞 0 评论 533 浏览 评分:0.0 [编程入门]自定义函数之整数处理:看大神才写出来 摘要:参考代码:#include <iostream>using namespace std;int a[10];void shuru(){ for(int i=0;i<10;i++){ …… 题解列表 2024年09月12日 0 点赞 0 评论 473 浏览 评分:0.0 利用动态数组以及建立循环条件 摘要:解题思路:如果是字符串的话或许可以套用循环公式,但题目要求是要整数,在这里我们要明白当(a<b时)a%b=a的,利用这个性质我们就可以为这10个数字设置一个公式,即(a+m)%b,m为要移动的位置,在…… 题解列表 2024年09月12日 0 点赞 0 评论 617 浏览 评分:0.0 输入10个整数,将其中最小的数与第一个数对换,把最大的数与最后一个数对换。 写三个函数; ①输入10个数;②进行处理;③输出10个数。 摘要:解题思路:注意事项:参考代码://输入10个数void scanf_ten(int* pc){ int i = 0; for (i = 0; i < 10; i++) { …… 题解列表 2024年09月12日 0 点赞 0 评论 455 浏览 评分:0.0 « 12...5649565056515652565356545655...59185919 »
详细注释版(c语言代码) ```c#include#include#defineMAX101//定义矩阵的最大维度为101#definemax(a,b)if(a 题解列表 2024年09月11日 0 点赞 0 评论 533 浏览 评分:0.0
[编程入门]自定义函数之整数处理:看大神才写出来 摘要:参考代码:#include <iostream>using namespace std;int a[10];void shuru(){ for(int i=0;i<10;i++){ …… 题解列表 2024年09月12日 0 点赞 0 评论 473 浏览 评分:0.0
利用动态数组以及建立循环条件 摘要:解题思路:如果是字符串的话或许可以套用循环公式,但题目要求是要整数,在这里我们要明白当(a<b时)a%b=a的,利用这个性质我们就可以为这10个数字设置一个公式,即(a+m)%b,m为要移动的位置,在…… 题解列表 2024年09月12日 0 点赞 0 评论 617 浏览 评分:0.0
输入10个整数,将其中最小的数与第一个数对换,把最大的数与最后一个数对换。 写三个函数; ①输入10个数;②进行处理;③输出10个数。 摘要:解题思路:注意事项:参考代码://输入10个数void scanf_ten(int* pc){ int i = 0; for (i = 0; i < 10; i++) { …… 题解列表 2024年09月12日 0 点赞 0 评论 455 浏览 评分:0.0