C语言训练-求函数值 (C语言代码)用递归就行了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int x){ if(x==1) return 10; else if(x>1) return fun(x-1)+2…… 题解列表 2019年04月16日 0 点赞 0 评论 491 浏览 评分:0.0
统计字母个数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,k=0,s[26]={0}; while(scanf("%c",&k)) { if(k=='…… 题解列表 2019年04月16日 0 点赞 0 评论 693 浏览 评分:0.0
[编程入门]自定义函数之数字分离 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,x1,x2,x3,x4; scanf("%d",&n); x1=n%10; x2=n/10%1…… 题解列表 2019年04月16日 0 点赞 0 评论 559 浏览 评分:0.0
C语言训练-数字母 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; int i,x,y,sum,n; x=0;y=0;…… 题解列表 2019年04月16日 0 点赞 0 评论 400 浏览 评分:0.0
C二级辅导-统计字符 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[100]; int i,x,j,t,o; t=x=t=o=j=0; gets(a); for(i=…… 题解列表 2019年04月16日 0 点赞 0 评论 444 浏览 评分:0.0
C语言训练-尼科彻斯定理 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sum=0,i,j,t,x; scanf("%d",&n); x=n*n*n; printf("%…… 题解列表 2019年04月16日 0 点赞 0 评论 381 浏览 评分:0.0
【密码】 (C++代码)(有惊喜!!!一种新想法) 摘要:解题思路:首先定义字符数组然后输入再把四个类型的字符分类,如果没有这种字符就是‘0’(假),然后最终加起来验证是否>=3即可。注意事项:注意同时需要满足两个条件才可以参考代码:#include<ios…… 题解列表 2019年04月19日 0 点赞 0 评论 703 浏览 评分:0.0
基础训练数列排序 (C语言代码) 摘要:解题思路:冒泡排序 加快速排序刚学的 贴上来注意事项:参考代码:#include<stdio.h>int a[300];void kuaisu(int x,int y){ if(x<y){ int …… 题解列表 2019年04月16日 0 点赞 0 评论 648 浏览 评分:0.0
川哥的吩咐 (C语言代码) 摘要:解题思路:数组倒序累加法注意事项:倒序转换,在倒序输出用while(c[z]==0){ z--};来去除首位 的 0参考代码:#include<stdio.h>#include<string.h…… 题解列表 2019年04月16日 0 点赞 0 评论 902 浏览 评分:0.0
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 (C语言代码)随意大小正整数 摘要:解题思路:变量描述:n代表s=a+aa+aaa+aaaa+aa...a中的a,cycle表示aa...a的位数(有多少个a),tmp表示每位数的和,tmpc表示有多少位(描述不清请看下面的例子)思路:…… 题解列表 2019年04月16日 0 点赞 0 评论 1275 浏览 评分:0.0