字符串的连接 ```c//题目要求把两个字符串链接,我们可以想到用数组存储,然后加上指针进行位置运算来实现,其实也可以直接用strcopy直接拷贝过去,我们这里就自己来实现字符串的连接#include#includeintmain(){chara[100], 题解列表 2022年07月17日 0 点赞 1 评论 877 浏览 评分:9.9
学生成绩(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ typedef struct student{ char name[20]…… 题解列表 2022年07月17日 0 点赞 0 评论 593 浏览 评分:9.9
简单1002: [编程入门]三个数最大值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>//万能头文件using namespace std;int main(){ int a,b,c; cin>>a>>b>>c…… 题解列表 2022年07月17日 0 点赞 0 评论 700 浏览 评分:0.0
编写题解 1089: A+B for Input-Output Practice (V) 摘要:解题思路:定义三个变量来保存数据注意事项:参考代码:#include<bits/stdc++.h>//c++万能头文件using namespace std;int main(){ int n; in…… 题解列表 2022年07月17日 0 点赞 0 评论 501 浏览 评分:0.0
优质题解 1796: 蛇形填数(dfs) 解题思路:很久之前就看见这道题了,但是因为感觉模拟起来太复杂所以没有做,今天突然想到dfs寻路可能可以解这道题,就尝试了一下dfs做法。如上图所示,如果从右上角开始的话,优先级一定是先向下搜索,然后再向左搜索,向上,最后向右搜索。也就是说,我们让搜索的优先级下>左>上>右就可以了。 题解列表 2022年07月17日 0 点赞 0 评论 1541 浏览 评分:10.0
超好懂的求一元二次方程 摘要:解题思路:取三个函数来计算三种情况,再一个函数来判断b*b-4*a*b与0的关系进那种情况;注意事项:了解如何计算二元一次方程的根,过程很简单;参考代码:#include<stdio.h>#inclu…… 题解列表 2022年07月17日 0 点赞 0 评论 532 浏览 评分:0.0
单词个数统计(C语言) //当前字符为字母且下个字符不是字母时单词数加一#includeintmain(){chara[80];gets(a);intk=0,len=strlen(a);for(inti=0;i='a'&&a[i]='A'&&a[i]'Z'&&a[i+1] 题解列表 2022年07月17日 0 点赞 0 评论 568 浏览 评分:0.0
自定义函数之数字分离(C语言简单数组) 摘要: #include void aa (int x); int main() { int x; scanf("%…… 题解列表 2022年07月17日 0 点赞 0 评论 626 浏览 评分:0.0
模拟计算器(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, m; char u; scanf("%d %d %c", &n, &m, &u)…… 题解列表 2022年07月17日 0 点赞 0 评论 682 浏览 评分:0.0
自定义函数之字符提取((C语言) #includevoidaa(chara[25]);intmain(){chara[25];scanf("%s",a);aa(a);}voidaa(chara[25]){for(inti=0;i<25;i++){if(a[i]=='a'){printf("%c", 题解列表 2022年07月17日 0 点赞 0 评论 750 浏览 评分:0.0