不用数组的解法——1009数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x , n=0 ; int m , i , y , j=1 , k ; …… 题解列表 2022年02月25日 0 点赞 0 评论 227 浏览 评分:9.9
数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int x,i,k=0,g; cin>>x; g=x; fo…… 题解列表 2022年03月25日 0 点赞 0 评论 212 浏览 评分:9.9
用while使输入输出简便化 摘要:参考代码:#include"iostream" int main() { char list[5],l=0; while(std::cin>>list[l])l++; std::cou…… 题解列表 2022年03月27日 0 点赞 0 评论 320 浏览 评分:9.9
菜鸟解答,大神勿喷 摘要:解题思路:注意事项:参考代码:#include"stdio.h" int main(){ int a,b,c,d,e,t,g; scanf("%d",&g); if(g>9999) t=5; else…… 题解列表 2022年04月19日 0 点赞 0 评论 221 浏览 评分:9.9
1009: [编程入门]数字的处理与判断(C++清爽版) 摘要:解题思路:清爽的代码注意事项:注意数据不要越界参考代码:#include<iostream> #include<cstring> using namespace std; int main() …… 题解列表 2022年04月20日 0 点赞 1 评论 258 浏览 评分:9.9
[编程入门]数字的处理与判断c++ 摘要:解题思路:分别求出它是几位数,输出每一位数字,按逆序输出各位数字注意事项:顺序不要混了参考代码:#include<iostream>#include<fstream>#include<algorith…… 题解列表 2022年05月09日 0 点赞 0 评论 264 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)另类版 摘要:解题思路:i作为输入,j用来求算出位数k求算出他的倒序数组a是用来取各个位数最后按指定格式输出。注意事项:注意换行的位置!!!参考代码:#include<stdio.h>int main() { in…… 题解列表 2022年05月10日 0 点赞 8 评论 193 浏览 评分:9.9
1009: [编程入门]数字的处理与判断 摘要:解题思路:这道题最简单的做法就是字符串,直接用size输出长度,然后用两个循环正序和倒叙输出字符串。注意事项:注意字符串从0开始。参考代码:#include<bits/stdc++.h>using n…… 题解列表 2022年05月13日 0 点赞 1 评论 430 浏览 评分:9.9
1009:数字的处理与判断 摘要:**题目描述:** 给出一个不多于5位的整数,要求 1、求出它是几位数 2、分别输出每一位数字 3、按逆序输出各位数字,例如原数为321,应输出123 **输入格式:** 一个不大于5位的数…… 题解列表 2022年07月04日 0 点赞 0 评论 285 浏览 评分:9.9
输出几位数且倒序输出 摘要:解题思路:应用循环语句来就是了,超简单的;关于第二行空格这样做就好了注意事项:注意字符串的长度要带一个'\0';参考代码:#include<stdio.h>#include<strin…… 题解列表 2022年07月08日 0 点赞 0 评论 140 浏览 评分:9.9