1009: [编程入门]数字的处理与判断 摘要:参考代码:#include <stdio.h> #include <string.h> //C语言字符串头文件,strlen() 函数包含在此内 int main() …… 题解列表 2021年12月05日 0 点赞 0 评论 239 浏览 评分:0.0
1009: [编程入门]数字的处理与判断 摘要:参考代码:#include <stdio.h>#include <string.h>int main(){ char str[5]; scanf("%s",str); int len…… 题解列表 2021年12月16日 0 点赞 0 评论 300 浏览 评分:0.0
c++处理,利用do-while循环解决 摘要:解题思路:(1)先想好怎么计算出位数?利用do-while循环指令,将输入的数分别除以十,得到余数和商,判断商是否为0;不是0则继续循环; do { b[i] = a % 10; a…… 题解列表 2021年12月28日 0 点赞 0 评论 707 浏览 评分:0.0
1009: [编程入门]数字的处理与判断 摘要:解题思路:确定几位数,提取各位数字,完成顺序输出和逆序输出(常规思路:整数数组、三个循环)注意事项:参考代码:代码一:#include int main(){ int n,t,num=1; //…… 题解列表 2022年01月24日 0 点赞 0 评论 422 浏览 评分:0.0
最麻烦也是最容易想到的解法。 摘要:解题思路:应用if语句或者switch语句,将可能的情况一一列出来。注意事项:适用于可能的情况类型较少的!参考代码:#include <stdio.h>#include <stdlib.h>int m…… 题解列表 2022年01月26日 0 点赞 0 评论 237 浏览 评分:0.0
数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,count=0,x[5]; for (i=0;i<5;i++…… 题解列表 2022年01月29日 0 点赞 0 评论 191 浏览 评分:0.0
C++ 利用string创建str对象 摘要:解题思路:利用c++ string 创建str对象 类似于字符数组注意事项:第二行末尾没有空格参考代码:/**********************************************…… 题解列表 2022年02月10日 0 点赞 0 评论 485 浏览 评分:0.0
本题焦点:判断位数,输出(正序/逆序)【菜鸟可看】 摘要:解题思路: 1:判断位数! 2:输出(正序:要求空格/逆序)注意事项: @@@怎样实现对位数的提取@@@我用了一个while(n/*是输入值,*/){ …… 题解列表 2022年02月22日 0 点赞 0 评论 322 浏览 评分:0.0
不用数组的方式 就是麻烦一点 摘要:参考代码:#include<stdio.h>int main(){ int x=0; int i=0; int g=0; int b=0; int t=0; int a,y,n,o=0; scanf…… 题解列表 2022年02月22日 0 点赞 0 评论 209 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<iostream>using namespace std;int main (){ long int a,tem…… 题解列表 2022年03月04日 0 点赞 0 评论 236 浏览 评分:0.0