优质题解 Manchester- 【回文数(二)】(一步一个函数,拼装程序,加分步解析) 摘要:解题思路:1.输入进制:jinzhi,和数:number;2.把number存放到数组A[]中,同时用length记录number最高位下标(这里0号元素代表number的个位数字)3.把A[]中元素…… 题解列表 2017年12月27日 27 点赞 10 评论 2858 浏览 评分:8.6
【回文数(二)】 (C语言代码) 摘要:参考代码://要满足2~16之间的任意进制,假设用 A B C D E F,分别表示 10 11 12 13 14 15 #include <stdio.h> char* copystr(…… 题解列表 2017年12月05日 0 点赞 0 评论 870 浏览 评分:0.0
【回文数(二)】 (C语言代码) 摘要:#include <stdio.h> #include <string.h> #include <ctype.h> int main() { int n,step=0,num[3000]=…… 题解列表 2017年11月23日 0 点赞 0 评论 858 浏览 评分:0.0
【回文数(二)】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int f(char *str); //判断是否为回文数int main(){ …… 题解列表 2017年09月02日 0 点赞 0 评论 946 浏览 评分:0.0
【回文数(二)】 (C语言代码) 摘要:#include<stdio.h> #include<string.h> typedef long long ll; int base;//base 记录进制 char f[100]; v…… 题解列表 2017年08月22日 0 点赞 0 评论 1115 浏览 评分:0.0
【回文数(二)】 (C++代码) 摘要:#include<iostream> #include<cstdio> #include<cstring> using namespace std; typedef long long ll;…… 题解列表 2017年08月22日 0 点赞 0 评论 1196 浏览 评分:0.0
【回文数(二)】 (C语言代码) 摘要:解题思路:定义多个函数,分别处理遇到的问题,用户输入的位数,数字反向相加,判断同文数。用数组去接收用户输入的第二个数会让后面的计算起来简单很多。参考代码:#include<stdio.h> #inc…… 题解列表 2017年07月14日 15 点赞 7 评论 1662 浏览 评分:7.2