Tom数 (C++代码) 摘要:#include <iostream> #include <cmath> using namespace std; long long n; int main() { whil…… 题解列表 2018年06月21日 7 点赞 0 评论 1509 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:利用sprintf函数来转换成字符串注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int a; char …… 题解列表 2018年06月19日 0 点赞 0 评论 767 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:直接利用字符串接收,用strlen()函数输出位数注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){char s[6]={0…… 题解列表 2018年06月19日 0 点赞 0 评论 915 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,s=0,r=0; scanf("%d%d", &a, &b); s=a*b; w…… 题解列表 2018年06月19日 0 点赞 0 评论 627 浏览 评分:0.0
程序员的表白 (C语言代码) 摘要:解题思路:根据u字格式 利用for循环扫描打印 将u 分为两部分 竖线部分 和横线部分 分别打印 竖线部分有n行 每行有n+2 列 用两个循环嵌套即可注意事项:参考代码:#include<stdio.…… 题解列表 2018年06月19日 1 点赞 0 评论 1385 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.11 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int M=1005; int a[M]; int main() {…… 题解列表 2018年06月19日 0 点赞 0 评论 1406 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c; scanf("%d %d %d", &a, &b, &c); a > b ? a > …… 题解列表 2018年06月20日 0 点赞 0 评论 1125 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.12 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int M=105; int a[M][2],b[M][2]; int…… 题解列表 2018年06月20日 0 点赞 0 评论 1208 浏览 评分:0.0
数字整除 (C++代码)(大数除法) 摘要:解题思路: 这里不需要算出来结果,除到最后一位的时候判断是不是 17 的倍数就行了参考代码:#include<bits/stdc++.h> using namespace std; …… 题解列表 2018年06月21日 0 点赞 0 评论 1386 浏览 评分:0.0
程序员的表白 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int main() { int n; while(cin>>n) {…… 题解列表 2018年06月21日 4 点赞 0 评论 1591 浏览 评分:0.0