常规发处理变量 摘要:解题思路:注意事项:调用fun()函数时,注意参数参考代码:#include<stdio.h> int fun(int num) { int a, b, c, d; a = num / 1…… 题解列表 2022年10月28日 0 点赞 0 评论 540 浏览 评分:0.0
C语言字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[5]; gets(a); for(int i=0;i<3;i++) …… 题解列表 2022年11月06日 0 点赞 0 评论 385 浏览 评分:0.0
1034: [编程入门]自定义函数之数字分离 摘要:解题思路:可以进行任意位数的分离注意事项:参考代码:#include <stdio.h>#include <string.h>void add(char a[]){ int len=strlen…… 题解列表 2022年11月15日 0 点赞 0 评论 412 浏览 评分:0.0
1034: [编程入门]自定义函数之数字分离(C语言) 摘要:参考代码:#include<stdio.h> int main() { char a[4]; for(int i=0;i<4;i++) { scan…… 题解列表 2022年11月15日 0 点赞 0 评论 480 浏览 评分:0.0
编写题解 1034: [编程入门]自定义函数之数字分离,有比较细节的地方 摘要:解题思路:利用for循环注意事项:直接用input函数不用外面嵌套int,这也是这个题应该注意的地方参考代码:def q():#直接用q带过了 a = input()#直接便利了字符串,而外面有…… 题解列表 2022年11月23日 0 点赞 0 评论 688 浏览 评分:0.0
1034 题解简单易懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int seperate(int m,int x,int y,int z,int w){ x=m/1000%10; y=m/100%1…… 题解列表 2022年12月10日 0 点赞 0 评论 436 浏览 评分:0.0
数字分离简单函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a;int b,c,d,e;scanf("%d",&a);b=a/1000;e=a%10;d=a/10%1…… 题解列表 2022年12月26日 0 点赞 0 评论 473 浏览 评分:0.0
用字符串自定义函数分离 摘要:解题思路:注意事项:注意'\0'不要漏掉参考代码:#include <stdio.h>#include <string.h>int main(){ char a[5]; gets(a);/…… 题解列表 2023年01月11日 0 点赞 0 评论 530 浏览 评分:0.0
自定义函数之数字分离(so easy) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int num; scanf("%d", &num); int a = num / 1000; int b = …… 题解列表 2023年02月08日 0 点赞 0 评论 459 浏览 评分:0.0
c++题解 1034: [编程入门]自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int check(int a){ int gewei = a%10; int …… 题解列表 2023年03月15日 0 点赞 0 评论 534 浏览 评分:0.0