Hello, world! (C语言代码) 摘要:#include <stdio.h> int main() { int a[100],i=0,m; while(scanf("%d",&a[i])!=EOF) { i++; …… 题解列表 2017年11月28日 1 点赞 0 评论 1048 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.1 (C语言代码) 摘要:解题思路:定义一个长度为n+1的数组,全赋值为1;将所有下角标为2的倍数的赋值为0;将所有下角标为3的倍数的赋值为0,依此类推;输出数值为1的单元的下角标;注意事项:参考代码:#include<std…… 题解列表 2017年11月28日 0 点赞 0 评论 802 浏览 评分:0.0
回文数字 (Java代码) 摘要:解题思路:用StringBuffer的reverse()方法判断回文数就比较简单了注意事项:参考代码: import java.util.Scanner; public class Main …… 题解列表 2017年12月02日 0 点赞 0 评论 973 浏览 评分:0.0
A+B for Input-Output Practice (I) (C语言代码) 摘要:#include<stdio.h> int main() { int a,b; while(scanf("%d%d",&a,&b)==2) printf("%d\n",a+b); …… 题解列表 2017年11月28日 1 点赞 0 评论 770 浏览 评分:0.0
分糖果 (C++代码) 摘要:#include<iostream> using namespace std; int a[105]; int b[105]; bool f(int a[],int n) { for(i…… 题解列表 2017年11月28日 8 点赞 0 评论 3005 浏览 评分:0.0
A+B for Input-Output Practice (V) (C语言代码) 摘要:#include <stdio.h> int main() { int a,m,sum,n; /*n定义几行,m定义算几个数;*/ scanf("%d",&n); while(n…… 题解列表 2017年11月28日 3 点赞 0 评论 997 浏览 评分:0.0
A+B for Input-Output Practice (VI) (C语言代码) 摘要:#include <stdio.h> int main() { int a,m,sum,n; while(scanf("%d",&n)!=EOF) { sum=0; …… 题解列表 2017年11月28日 1 点赞 0 评论 806 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b; scanf("%d",&a); if (a<1) { b =…… 题解列表 2017年11月28日 0 点赞 0 评论 913 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,t=0,k,n,i=0,aa[5]; scanf("%d",&a); k=a; …… 题解列表 2017年11月28日 0 点赞 0 评论 715 浏览 评分:0.0
A+B for Input-Output Practice (I) (C语言代码) 摘要:解题思路:1 输入两个数据2 求和3 输出注意事项:注意数据类型和转换说明符的对应参考代码:#include<stdio.h>int main(){ int a,b; printf("input tw…… 题解列表 2017年11月29日 1 点赞 0 评论 781 浏览 评分:0.0