C语言程序设计教程(第三版)课后习题8.9 (C语言代码) 摘要:解题思路:通过指针来传递字符串注意事项:参考代码:#include<stdio.h>int *fun(char *p ){ int str[4] = { 0 }; while (…… 题解列表 2018年07月25日 0 点赞 0 评论 822 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.7 (C语言代码)就是要用while结构求解!!! 摘要:解题思路:1、定义一个变量 n用来存放键盘输入的值。2、定义一个X轴循环起点i=2,当i<=n时,每个i值都要除以从i到i-1的每个数。选择while结构执行X轴循环。3、定义一个Y轴循环起点j=1,…… 题解列表 2018年07月25日 1 点赞 0 评论 1293 浏览 评分:0.0
C语言训练-尼科彻斯定理 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i; while(scanf("%d",&i)!=EOF) { printf("%d*%d*%d=%d…… 题解列表 2018年07月25日 0 点赞 0 评论 750 浏览 评分:0.0
【亲和数】 (Java代码) 摘要:解题思路: 1.用变量保存输入的两个数字 2.取出其中一个数字,从1开始到这个数字循环取模,如果能够整除就累加 3.如果累加的结果正好等于另一个数字,就可以输出 YES 4.…… 题解列表 2018年07月25日 2 点赞 0 评论 1576 浏览 评分:0.0
蓝桥杯算法提高- c++_ch02_03 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <string>#include <iomanip>using namespace std;int main ()…… 题解列表 2018年07月26日 0 点赞 0 评论 1626 浏览 评分:0.0
蓝桥杯算法提高- c++_ch03_02 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void) { int a[100][100]; //用二位数组储存元素 …… 题解列表 2018年07月26日 1 点赞 0 评论 1992 浏览 评分:0.0
求输入数据绝对值 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <string.h>#include<stdio.h>#include <math.h>int main(){ float n; while(scanf…… 题解列表 2018年07月26日 0 点赞 0 评论 1102 浏览 评分:0.0
判断第几天 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <string.h>#include<stdio.h>#include <math.h>int data[13] = { 0,31,28,31,30,3…… 题解列表 2018年07月26日 2 点赞 0 评论 1729 浏览 评分:0.0
数日子 (C语言代码) 摘要:解题思路:直接输出注意事项:参考代码:#include<stdio.h>int main(){printf("200\n");return 0;}…… 题解列表 2018年07月26日 0 点赞 1 评论 480 浏览 评分:2.0
三位数反转 (C语言代码) 摘要:解题思路:用字符串保存直接反输出注意事项:直接输出printf("%c%c%c",s[2],s[1],s[0]);是错误的 因为输入两位数的时候,s[2]是'\0'了参考代码:#in…… 题解列表 2018年07月26日 1 点赞 0 评论 1976 浏览 评分:6.0