题解列表

筛选

C二级辅导-进制转换 (C语言代码)

摘要:解题思路:用到1个函数    itoa(num,str,需要转化的进制数(例如8))把数num以8进制保存在身str中,注意事项:网页编译通不过,软件编译是可以的,16进制输出的是小写字母参考代码:#……

我的为啥通不过呢?

摘要:解题思路:注意事项:参考代码:int main(){    int a[3][3];        int *p = a[3];    int i,j;    for (i = 0; i < 9; i……

DNA (C语言代码)(查错)

摘要:解题思路:注意事项:参考代码:#include<stdio.h> void show(int a); int main(){ int i,n,a[15],b[15],j; scanf("%d",&n)……

母牛的故事 (C语言代码)

摘要:解题思路:注意事项:参考代码://#define AGO_MIN 10 //相隔几年 int n = 50;//n年后的数量 int sum = 1 + n; int count = (n + AGO……

母牛的故事 (C语言代码)

摘要:解题思路:注意事项:参考代码://#define AGO_MIN 4 //相隔几年 int n = 50;//n年后的数量 int sum = 1 + n; int count = (n + AGO_……

【绝对值排序】 (C语言代码)

摘要:解题思路:        利用二维数组,数组的一行存一行的输入数据,每行第一个元素(a[k][0])为这行元素个数    给数组排序时利用调用函数进行,不改变数据但可以做到比较大小注意事项:     ……