易如反掌之自定义函数之数字分离 摘要:解题思路:遍历循环字符串长度,依次输出。注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]; sc…… 题解列表 2024年04月04日 1 点赞 0 评论 177 浏览 评分:9.9
按照题目要求完成 摘要:解题思路:注意事项:参考代码:#include#include"math.h"using namespace std;uint8_t digitNum(uint32_t num) {//数字长度判断 …… 题解列表 2024年03月21日 0 点赞 0 评论 106 浏览 评分:0.0
自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char a[4]; scanf("%s",a); i…… 题解列表 2024年03月21日 0 点赞 0 评论 144 浏览 评分:0.0
C语言输出,仅两个数字之间有空格 摘要:解题思路:i++后,i指向下一个位置,此时判断一下是否需要输出空格注意事项:注意i指向的位置参考代码:#include<stdio.h>#include<stdlib.h> int main(){ …… 题解列表 2024年03月07日 0 点赞 0 评论 327 浏览 评分:0.0
自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n = 0; int qian = 1000; int hou = 1000; scanf_s("%d…… 题解列表 2024年03月04日 0 点赞 0 评论 114 浏览 评分:0.0
使用string实现数字分离 摘要:解题思路:使用string拿到用户输入的字符串利用size函数求出字符串大小利用for循环逐个输出用户的字符注意事项:输出每个字符后需要加上空格参考代码:#include<iostream>using…… 题解列表 2024年01月20日 0 点赞 0 评论 337 浏览 评分:0.0
混子代码你值得拥有! 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ char arr[4] = {0}; for(int i …… 题解列表 2023年12月26日 0 点赞 0 评论 80 浏览 评分:0.0
直接读入字符如其所愿 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[1000]; gets(s); for(in…… 题解列表 2023年12月18日 0 点赞 0 评论 82 浏览 评分:0.0
数字分离(Java代码) 摘要: import java.util.Scanner; public class L1034 { public static void main(String[…… 题解列表 2023年12月07日 0 点赞 0 评论 314 浏览 评分:9.9
1034: [编程入门]自定义函数之数字分离 摘要:解题思路:1.只是喊每个数字后空一格,所以........注意事项:格式不能写错参考代码:#include<stdio.h>int main(){ char a[100]; int i; …… 题解列表 2023年12月05日 0 点赞 0 评论 56 浏览 评分:0.0