题解1031运行正常,为啥提交了提示错误呢? 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i = 0, x = 0,j=0; char str[50],ch; whil…… 题解列表 2018年06月12日 0 点赞 0 评论 524 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int x,count; printf("Enter x:"); scanf("%d",&x); wh…… 题解列表 2018年06月12日 0 点赞 0 评论 807 浏览 评分:0.0
C二级辅导-进制转换 (C语言代码) 摘要:解题思路:用到1个函数 itoa(num,str,需要转化的进制数(例如8))把数num以8进制保存在身str中,注意事项:网页编译通不过,软件编译是可以的,16进制输出的是小写字母参考代码:#…… 题解列表 2018年06月12日 0 点赞 0 评论 643 浏览 评分:0.0
我的为啥通不过呢? 摘要:解题思路:注意事项:参考代码:int main(){ int a[3][3]; int *p = a[3]; int i,j; for (i = 0; i < 9; i…… 题解列表 2018年06月12日 0 点赞 0 评论 573 浏览 评分:0.0
DNA (C语言代码)(查错) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> void show(int a); int main(){ int i,n,a[15],b[15],j; scanf("%d",&n)…… 题解列表 2018年06月12日 0 点赞 0 评论 1015 浏览 评分:0.0
C语言训练-阶乘和数* (C语言代码)正确的输出顺序 摘要:#include <stdio.h> #include <math.h> /********阶乘********/ int factorial(int n) { int produ…… 题解列表 2018年06月12日 10 点赞 8 评论 2779 浏览 评分:9.6
母牛的故事 (C语言代码) 摘要:解题思路:注意事项:参考代码://#define AGO_MIN 10 //相隔几年 int n = 50;//n年后的数量 int sum = 1 + n; int count = (n + AGO…… 题解列表 2018年06月12日 0 点赞 0 评论 532 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:注意事项:参考代码://#define AGO_MIN 4 //相隔几年 int n = 50;//n年后的数量 int sum = 1 + n; int count = (n + AGO_…… 题解列表 2018年06月12日 1 点赞 0 评论 526 浏览 评分:0.0
【绝对值排序】 (C语言代码) 摘要:解题思路: 利用二维数组,数组的一行存一行的输入数据,每行第一个元素(a[k][0])为这行元素个数 给数组排序时利用调用函数进行,不改变数据但可以做到比较大小注意事项: …… 题解列表 2018年06月12日 2 点赞 0 评论 1356 浏览 评分:0.0
优质题解 求1+2+3+...+n的值 (C++代码)(高精度加,乘,除) 摘要:解题思路: ( 后来我才发现 long long 就可以过了QAQ ,数还不够大呀,当然更大也能过 ) 我太笨啦,用数列和公式算 Sn = (1 + n) * n / 2…… 题解列表 2018年06月12日 4 点赞 2 评论 1978 浏览 评分:9.9