[编程入门]自定义函数之数字分离-Java-超笨方法-4个syso : ) 摘要:解题思路:注意事项:参考代码:Scanner in = new Scanner(System.in); int a = in.nextInt(); System.out.print(a/1000+…… 题解列表 2021年05月19日 0 点赞 0 评论 505 浏览 评分:9.9
一看就会 新思路 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <string>using namespace std;int main(){ string a; cin>>a;…… 题解列表 2021年05月16日 0 点赞 0 评论 750 浏览 评分:6.0
优质题解 1034: [编程入门]自定义函数之数字分离 摘要:解题思路:鉴于很多题解没有严格按题目要求通过数组、函数来求解,我便来介绍一个用数组求解此题的方法;对于数据的处理,我们最容易想到的就是通过数组来求解,而在本题中,题目要求我们输入4个连续的不带空格的数…… 题解列表 2021年05月06日 0 点赞 34 评论 7954 浏览 评分:6.4
容易理解的C语言代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int num, i = 0; char nums[100]; scan…… 题解列表 2021年04月03日 0 点赞 0 评论 133 浏览 评分:0.0
自定义函数之数字分离 摘要:#include<stdio.h>#include<string.h>int main(void){ char num[8]; int i; gets(num); for (i=0;i<4;i++)…… 题解列表 2021年03月30日 0 点赞 0 评论 268 浏览 评分:0.0
一种当做字符串的写法 摘要:解题思路:把输入的数字当做字符串处理后再输出。注意事项:注意字符串末尾‘\0’;参考代码:#include<string.h> #include<stdio.h> char* Function(c…… 题解列表 2021年03月28日 0 点赞 0 评论 292 浏览 评分:6.0
完全符合题目要求的答案 摘要:【自己理解一下吧】#pragma warning(disable:4996)#include <stdio.h>#define SIZE 16int main(void){ int num; int …… 题解列表 2021年03月11日 0 点赞 0 评论 257 浏览 评分:0.0
[编程入门]自定义函数之数字分离-题解(C语言代码) 摘要:```c #include void fun(int a) { printf("%d %d %d %d\n",a/1000,a/100%10,a/10%10,a%10); } i…… 题解列表 2021年02月07日 0 点赞 0 评论 162 浏览 评分:0.0
[编程入门]自定义函数之数字分离-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d,e; scanf("%d",&a); b=a/1000; c=a%1000/100; d…… 题解列表 2021年02月05日 0 点赞 0 评论 300 浏览 评分:0.0
[编程入门]自定义函数之数字分离-题解(C++代码) 摘要:解题思路:字符串+指针传参 注意事项: 参考代码: ```cpp #include using namespace std; char s[10]; void fun(char …… 题解列表 2021年02月04日 0 点赞 0 评论 185 浏览 评分:0.0