C语言训练-角谷猜想 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,tem; scanf("%d",&n); tem=n; while(tem!…… 题解列表 2017年08月31日 0 点赞 0 评论 1953 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题10.5 (C语言代码) 摘要:解题思路:这个是模拟题,自己在纸上画一下 人数是3,4,5的情况再慢慢分析一下就可以写出来了注意事项:这个是一个圈,刚开始我也没注意到,发现怎么都是2,后来才知道圈可以无限循环下去,直到最后一个人参考…… 题解列表 2017年08月31日 0 点赞 0 评论 1709 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:#include<stdio.h>struct Year{int year; int month; int day;};int main(){ struct Year a; int year,mont…… 题解列表 2017年08月30日 0 点赞 0 评论 886 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:注意事项:注意输出数据的大小,有可能会超过int 的限制参考代码:#include <stdio.h>//using namespace std;//#define LINT64 (long…… 题解列表 2017年08月30日 0 点赞 0 评论 864 浏览 评分:6.0
九宫重排 (C++代码) 摘要://使用哈希技术,提高检索效率,哈哈哈 #include<cstdio> #include<cstring> using namespace std; typedef int State[…… 题解列表 2017年08月30日 0 点赞 0 评论 1684 浏览 评分:6.0
九宫重排 (C++代码) 摘要:#include<cstdio> #include<cstring> using namespace std; typedef int state[9]; const int maxn = 1…… 题解列表 2017年08月30日 3 点赞 3 评论 2261 浏览 评分:4.3
P1002 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>struct student{ char name[20]; int score1,score2…… 题解列表 2017年08月30日 3 点赞 0 评论 1391 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题6.11 (C语言代码)for循环 摘要:解题思路:此题目应用简单的迭代循环求得解,是C语言学习过程中的基础题目,很多学校很常见。注意事项:1.绝对值函数为fabs函数,应用此函数时应加上头文件#include <math.h>; …… 题解列表 2017年08月30日 1 点赞 0 评论 1401 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>main(){int a,b,sum;scanf("%d%d",&a,&b);sum=a+b;prinrf("sum=%d",sum);…… 题解列表 2017年08月30日 0 点赞 1 评论 878 浏览 评分:8.0
C语言训练-素数问题 (C语言代码) 摘要:解题思路:用记数器,如果取余为零则记数器为1,如果取余不为零,则记数器为0;当记数器为零时输出1;当记数器为1时输出0注意事项:参考代码: #include<stdio.h> int main…… 题解列表 2017年08月30日 0 点赞 0 评论 1294 浏览 评分:9.9