C语言程序设计教程(第三版)课后习题4.9 (C语言代码) 摘要:解题思路:注意事项:注意scanf("%lf",&f);或者scanf("%f",&f);如果你前面定义的f是用double类型的话,就应该用%lf格式,如果f是float类型的话,就应该用%f,不然…… 题解列表 2017年08月20日 0 点赞 0 评论 1164 浏览 评分:8.0
字符串输入输出函数 (C++代码)(都当成字符串吧hhhhhhhh) 摘要:解题思路:都当成字符串吧hhhhhhhh注意事项:都当成字符串吧hhhhhhhh参考代码:#include<stdio.h> int main() { char a[50], b[50…… 题解列表 2017年08月26日 1 点赞 1 评论 702 浏览 评分:8.0
C二级辅导-公约公倍 (C语言代码) 摘要:解题思路:对于求两个整数的最小公倍数采用辗转相除法:设两数为a、b(b<a),用gcd(a,b)表示a,b的最大公约数,r=a mod b 为a除以b以后的余数,k为a除以b的商,即a÷b=k....…… 题解列表 2017年08月27日 4 点赞 2 评论 1796 浏览 评分:8.0
C语言训练-大、小写问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[110]={0}; gets(str); …… 题解列表 2017年08月28日 2 点赞 7 评论 2806 浏览 评分:8.0
蓝桥杯历届试题-九宫重排 (C++代码) 摘要:#include<cstdio> #include<cstring> #include<set> using namespace std; typedef int State[9]; c…… 题解列表 2019年03月16日 12 点赞 6 评论 2979 浏览 评分:8.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 评论 1036 浏览 评分:8.0
P1002 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>struct student{ char name[20]; int score1,score2…… 题解列表 2017年08月30日 3 点赞 0 评论 1817 浏览 评分:8.0
C语言训练-计算1977!* (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int num[500000]={0},N,nHighestPo…… 题解列表 2017年08月31日 0 点赞 0 评论 1663 浏览 评分:8.0
C语言训练-计算一个整数N的阶乘 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,i,j; scanf("%d",&N); j=1; for(i=1;i<=N…… 题解列表 2017年08月31日 0 点赞 0 评论 1640 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:注意事项:参考代码://求最大公因数,最小公倍数#include<stdio.h>int maxGY(int,int);//求最大公约数int minGB(int,int);//求最小公倍数…… 题解列表 2017年09月01日 1 点赞 1 评论 702 浏览 评分:8.0