[编程入门]自定义函数处理素数-题解(C语言代码) 摘要:解题思路: 这一道题可以定义一个函数为判断是否为素数的函数,再将它进行调用即可。(素数的条件为该数只能被1和它本身整除或该数在2到它本身减一不能被整除)注意事项:注意函数调用的格式参考代…… 题解列表 2020年12月01日 0 点赞 0 评论 300 浏览 评分:0.0
单词得分-题解(C语言代码)解释运行错误的情况 摘要:解题思路:题目说长度不超过十的五次方,如果字符串长度定义成100000的话,那就会一直显示运行错误,真的很坑人注意事项:参考代码:#include#includeint main(){ char…… 题解列表 2020年12月01日 0 点赞 0 评论 680 浏览 评分:9.9
蓝桥杯算法提高VIP-凶手-题解(C++代码) 摘要:```cpp #include using namespace std; int main() { int a[7],b[7]; for (int i = 1; i < 7…… 题解列表 2020年12月01日 0 点赞 0 评论 564 浏览 评分:0.0
蓝桥杯算法提高VIP-递归倒置字符数组-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include <iostream>using namespace std;char daozhi(char a[],in…… 题解列表 2020年12月01日 0 点赞 0 评论 412 浏览 评分:0.0
蓝桥杯算法提高-矩阵转置-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[20][20]; int n,m,i,j,temp,max; scanf("%d%d",&n,&m)…… 题解列表 2020年12月01日 0 点赞 0 评论 822 浏览 评分:6.0
C语言训练-字符串正反连接-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include#include#define N 100int main(){ char a[N],b[N]; int i,j; j=0; ge…… 题解列表 2020年12月01日 0 点赞 2 评论 342 浏览 评分:0.0
C语言考试练习题_保留字母-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include#includeint main(){ char a[80];//长度不超过80 int i,length; gets(a);//输入字…… 题解列表 2020年12月01日 0 点赞 0 评论 627 浏览 评分:9.0
C语言训练-8除不尽的数-题解(C语言代码) 摘要:解题思路:一个条件一个条件筛就行注意事项:参考代码:#includeint main(){ int a,b,c,d,e,i; for(i=1;i<2000;i++)//题目要求输出的是19…… 题解列表 2020年11月30日 0 点赞 0 评论 563 浏览 评分:0.0
蓝桥杯算法训练-大小写转换-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[20]; int n,i; gets(a); n=strlen…… 题解列表 2020年11月30日 0 点赞 0 评论 783 浏览 评分:0.0
提成计算-题解(C语言代码) 摘要:解题思路:注意事项:注意0 的个数参考代码:#include<stdio.h>int main(){int i;float sum = 0;scanf("%d",&i); if(i <= 100…… 题解列表 2020年11月30日 0 点赞 0 评论 598 浏览 评分:0.0