C语言程序设计教程(第三版)课后习题6.10 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,j=1,k; scanf("%d",&n); if(n==1) { printf("1");…… 题解列表 2018年01月09日 0 点赞 0 评论 743 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:在纸上写一写所有有可能的组合参考代码:#include <stdio.h>int main(void){ int a,b,c,i,e,r,d; scanf("%d%d%d",&a…… 题解列表 2018年01月09日 2 点赞 0 评论 2427 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.5 (C语言代码) 摘要:解题思路:输出**************************Hello World!**************************注意事项:参考代码:#include<stdio.h>in…… 题解列表 2018年01月09日 0 点赞 0 评论 785 浏览 评分:0.0
printf基础练习2 (C语言代码) 摘要:解题思路:输入一个整数,不超过10^9注意事项:输出这个整数的八进制、十进制和十六进制,三个数字用空格分开,最后一个有换行不要忘记八进制和十六进制的前缀哦~参考代码:#include<stdio.h>…… 题解列表 2018年01月09日 0 点赞 0 评论 845 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.9 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstdio>#include <cstring>using namespace std;int main(){…… 题解列表 2018年01月09日 0 点赞 0 评论 873 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题9.1 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstdio>#include <cstring>using namespace std;int main(){…… 题解列表 2018年01月09日 0 点赞 0 评论 891 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.6 (C语言代码) 摘要:解题思路: 既然是三位数,即从100遍历到999,用三层嵌套可以解决。注意事项:在每次循环的时候记住每位数的pow值能加快运行速度,且n可以用累加形式替代其他答案的i*100+j*10+k,记住要 i…… 题解列表 2018年01月09日 1 点赞 0 评论 685 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.11 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include <math.h> using namespace std; int main() { int a; …… 题解列表 2018年01月09日 7 点赞 2 评论 733 浏览 评分:0.0
回文串 (Java代码) 摘要:解题思路:首先将输入的字符串a利用StringBuffer逆序处理得到字符串b然后利用循环对字符串进行访问即可注意事项:参考代码:import java.util.Scanner; public…… 题解列表 2018年01月09日 9 点赞 3 评论 631 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){char c1='C',c2='h',c3='i',c4='…… 题解列表 2018年01月09日 0 点赞 0 评论 808 浏览 评分:0.0