1034: [编程入门]自定义函数之数字分离
摘要:解题思路:可以进行任意位数的分离注意事项:参考代码:#include <stdio.h>#include <string.h>void add(char a[]){ int len=strlen……
1034: [编程入门]自定义函数之数字分离(C语言)
摘要:参考代码:#include<stdio.h>
int main()
{
char a[4];
for(int i=0;i<4;i++)
{
scan……
编写题解 1034: [编程入门]自定义函数之数字分离,有比较细节的地方
摘要:解题思路:利用for循环注意事项:直接用input函数不用外面嵌套int,这也是这个题应该注意的地方参考代码:def q():#直接用q带过了 a = input()#直接便利了字符串,而外面有……
1034 题解简单易懂
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int seperate(int m,int x,int y,int z,int w){ x=m/1000%10; y=m/100%1……
用字符串自定义函数分离
摘要:解题思路:注意事项:注意'\0'不要漏掉参考代码:#include <stdio.h>#include <string.h>int main(){ char a[5]; gets(a);/……
自定义函数之数字分离(so easy)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int num; scanf("%d", &num); int a = num / 1000; int b = ……
c++题解 1034: [编程入门]自定义函数之数字分离
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int check(int a){ int gewei = a%10; int ……