蓝桥杯算法训练-大小写转换-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include using namespace std; int main() { char a[21]; cin>>a; int …… 题解列表 2020年12月14日 0 点赞 0 评论 776 浏览 评分:9.9
[编程入门]正儿八经的C语言代码,简单易懂。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct student { char id[20]; char name[30]; int a[3];};int i, n;str…… 题解列表 2020年12月14日 0 点赞 3 评论 504 浏览 评分:9.9
[编程入门]矩阵对角线求和-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:# include<stdio.h>int main(void){ int a[3][3]; int i, j; int sum1=0, sum2=0;…… 题解列表 2020年12月14日 0 点赞 0 评论 391 浏览 评分:0.0
[编程入门]自定义函数之字符串反转-题解(C语言代码) 摘要:解题思路:用另外一个数组保存从尾至头的数据,判断当前元素不是空格则存储注意事项:用来存储的数组不能跟源数组的下标同时++参考代码:#include "stdio.h"#include "string.…… 题解列表 2020年12月14日 0 点赞 0 评论 640 浏览 评分:0.0
数据结构-字符串插入-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include#include#define N 127//限制长度为127int main(){ char a[N],b[N]; int i,n,leng…… 题解列表 2020年12月14日 0 点赞 1 评论 884 浏览 评分:6.0
[编程入门]有规律的数列求和-题解(C语言代码) 摘要:解题思路:一般数列题都死=是有规律的,多试几个方式慢慢找到规律注意事项:由于涉及到除法,设置变量时需要多加注意参考代码:#include <stdio.h>#include <stdlib.h>int…… 题解列表 2020年12月14日 0 点赞 0 评论 361 浏览 评分:0.0
二级C语言-平均值计算-题解(C语言代码) 摘要:解题思路:注意事项:参考代码: #include<stdio.h> int main(){ int a[10],i,n,s=0,t=0; for(i=0;i<10;i+…… 题解列表 2020年12月14日 0 点赞 0 评论 371 浏览 评分:0.0
A+B for Input-Output Practice-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, x, i, y, sum = 0; scanf("%d", &n); while…… 题解列表 2020年12月15日 0 点赞 0 评论 447 浏览 评分:0.0
[亲和数]-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, a, b, i, sum1 = 0, count = 1, sum2 = 0; sca…… 题解列表 2020年12月15日 0 点赞 0 评论 360 浏览 评分:0.0
[偶数求和]-题解(C语言代码) 摘要:解题思路:注意事项:就是正常逻辑,但要注意每个语句的先后,可以先找个样例推一遍参考代码:#include"stdio.h"int main(){ int n, i, m, count , x, …… 题解列表 2020年12月15日 0 点赞 0 评论 384 浏览 评分:0.0