C语言程序设计教程(第三版)课后习题7.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int i,j,k=0,a[10][10],b=0,c=0; f…… 题解列表 2018年02月17日 0 点赞 0 评论 795 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.4 (C语言代码)(简单版) 摘要:解题思路:注意事项:参考代码:/*写一个函数,使给定的一个二维数组(3×3)转置,即行列互换。*/#include <stdio.h>int main(){ int a[3][3]; …… 题解列表 2018年02月17日 0 点赞 0 评论 1020 浏览 评分:0.0
幸运儿 (C语言代码)利用循环链表处理! 摘要:解题思路:利用循环链表,移动一位,移除一位,直到剩下两人。注意事项:注意题目意思,每次循环完一轮都从1重新开始,与出圈问题有少许不同。参考代码:#include<stdio.h>#include<st…… 题解列表 2018年02月17日 2 点赞 0 评论 1157 浏览 评分:0.0
DNA (C++代码) 摘要:参考代码:#include <iostream> using namespace std; int main() { int n,a,b,flag; cin>>n; …… 题解列表 2018年02月17日 0 点赞 0 评论 934 浏览 评分:0.0
P1001 (C语言代码) 摘要:解题思路:注意事项:注意m<2的判断参考代码:#include<stdio.h>int main(){ int N,k,i,j,m,f=0; int a[10000]; scanf("%d%d",&N…… 题解列表 2018年02月17日 1 点赞 0 评论 969 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.7 (C语言代码)要用getchar()吸收多余字符哦! 摘要:解题思路:注意事项:getchar(); //吸收scanf后的空格键参考代码:#include<stdio.h>#include<string.h>void strco(char *b,int n,…… 题解列表 2018年02月17日 0 点赞 1 评论 549 浏览 评分:0.0
IP判断 (C++代码) 摘要:参考代码:#include <iostream> #include <string> using namespace std; int main() { string str; …… 题解列表 2018年02月17日 0 点赞 0 评论 863 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:/*写一函数,将两个字符串连接*/#include <stdio.h> #include <string.h>int main(){ char a[100],b[…… 题解列表 2018年02月18日 0 点赞 0 评论 753 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:/*写一函数,使输入的一个字符串按反序存放,在主函数中输入输出反序后的字符串*/#include <stdio.h>#include <string.h> int mai…… 题解列表 2018年02月18日 0 点赞 0 评论 683 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:/*写一函数,将一个字符串中的元音字母复制到另一个字符串,然后输出。*/#include <stdio.h>#include <string.h>int main(){ …… 题解列表 2018年02月18日 0 点赞 0 评论 860 浏览 评分:0.0