C语言程序设计教程(第三版)课后习题7.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:/* 插入有序数组 */ #include<stdio.h> void ins(int *arr,int k) { int i,j; for…… 题解列表 2017年10月26日 0 点赞 0 评论 1574 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.3 (C语言代码) 摘要:解题思路:一步到位注意事项:=-=||!参考代码:/* 主对角线 副对角线 元素和 */ #include<stdio.h> #define N 3 void func(int arr[]…… 题解列表 2017年10月26日 0 点赞 0 评论 1001 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.2 (C语言代码) 摘要:解题思路:感觉这样模块化会好一些~注意事项:注意指针的使用参考代码:/* 选择排序 */ #include<stdio.h> void swap(int *a,int *b); void s…… 题解列表 2017年10月26日 4 点赞 0 评论 1058 浏览 评分:0.0
C二级辅导-统计字符 (C语言代码) 摘要:解题思路:这是没错的可以他说有问题注意事项:参考代码:#include"stdio.h"#include"string.h"int main(){ char string[20]; int i…… 题解列表 2017年10月25日 0 点赞 0 评论 1208 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef struct student{ char id[50]; char name[50]; int …… 题解列表 2017年10月25日 1 点赞 0 评论 1120 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:输入a+b然后相加注意事项:参考代码:#include<studio.h>int main(){ int a,b,sum; sum=a+b; printf("%d",sum);}…… 题解列表 2017年10月25日 0 点赞 0 评论 812 浏览 评分:0.0
找出最长的字符串来 (C语言代码) 摘要:解题思路:输出最长的用strlen()函数算出长度。一个个比较。注意事项:c语言中,没有字符串类型,用字符数组处理字符串。参考代码:#include<stdio.h>#include<string.h…… 题解列表 2017年10月25日 2 点赞 0 评论 2402 浏览 评分:7.3
敲七 (C语言代码) 摘要:#include <stdio.h> int main() { int i,num,count=0,o; scanf("%d",&num); for (i=1;i<=num;i++) …… 题解列表 2017年10月25日 8 点赞 4 评论 2972 浏览 评分:9.0
简单的事情 (C语言代码) 摘要:#include <stdio.h> int main() { int n,m,i; while (scanf("%d%d",&n,&m)!=EOF) { int sum=1; …… 题解列表 2017年10月25日 0 点赞 0 评论 1458 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:我这运行出来结果是对的,我是来求助的。。请问大神哪里错了呢?是不是要按规定的变量名命名?注意事项:参考代码:#include<stdio.h>int main(){ int a,b,i…… 题解列表 2017年10月25日 0 点赞 0 评论 913 浏览 评分:0.0