多输入输出练习2 (C语言代码) 摘要:解题思路:注意事项:这题π取3.1415参考代码:#include<stdio.h> int main() { int n,i; scanf("%d",&n); for(i…… 题解列表 2018年05月12日 0 点赞 0 评论 1194 浏览 评分:0.0
大小写转换 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char c[80]; while(scan…… 题解列表 2018年05月12日 0 点赞 0 评论 982 浏览 评分:0.0
数列 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int M=10000+5; int a[M]; int main()…… 题解列表 2018年05月12日 0 点赞 0 评论 1445 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<malloc.h>typedef struct _student{ char id[100]; …… 题解列表 2018年05月12日 0 点赞 0 评论 834 浏览 评分:0.0
字符排列问题 (Java代码) 摘要:解题思路:全排列算法列出所有的可能,然后去检查无重复项有几个注意事项:参考代码:public class 字符串排列 { public static String [] str = new Str…… 题解列表 2018年05月13日 0 点赞 0 评论 1133 浏览 评分:0.0
程序员美工梦 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n[100],i,j,k; for(i=0;;i++) { sca…… 题解列表 2018年05月13日 0 点赞 0 评论 874 浏览 评分:0.0
你的开发任务 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,j,j1,j2,k,n,t,p,m,l[1000]; char …… 题解列表 2018年05月13日 0 点赞 0 评论 1510 浏览 评分:0.0
程序员美工梦 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; void f1_print(int n) { for(int i=1;i<=n;…… 题解列表 2018年05月13日 0 点赞 0 评论 1432 浏览 评分:0.0
倒数第二 (C语言代码) 摘要:解题思路:先把成绩存放在数组中,再将数组进行简单的从大到小排序,取倒数第二个元素就是倒数第二名。注意事项:我采用的是快速排序的方法,写着比较省事,也可以使用其他的排序方法参考代码:#include <…… 题解列表 2018年05月13日 0 点赞 0 评论 1215 浏览 评分:0.0
字符逆序 使用StringBuilder 4行解决此类问题(Java代码) 摘要:解题思路:使用java自带的StringBuilder类的reverse()方法即可获得翻转后的字符注意事项:无参考代码: import java.util.Scanner; public c…… 题解列表 2018年05月13日 1 点赞 1 评论 899 浏览 评分:0.0