1035: [编程入门]自定义函数之字符类型统计 摘要:解题思路:用ctype.h库的函数判断字符类型注意事项:参考代码:#include <stdio.h>#include <string.h>#include <ctype.h>void adc(cha…… 题解列表 2022年11月15日 0 点赞 0 评论 128 浏览 评分: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 评论 183 浏览 评分:0.0
自定义函数处理素数 摘要:解题思路:以个位数为单位,其余数字对个位数求余不为0(除去1-9内的偶数),其余数字就是素数注意事项:参考代码:int jud_prime(int x){ int i; for(i=2;i…… 题解列表 2022年11月15日 0 点赞 0 评论 141 浏览 评分:0.0
1035: [编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define MAXSIZE 1000 //宏定义,将下文的所有MAXSIZE替换为1000 int main() {…… 题解列表 2022年11月16日 0 点赞 0 评论 134 浏览 评分:0.0
靠数学公式 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int M,N; scanf("%d%d",&M,&N); float h,s;…… 题解列表 2022年11月16日 0 点赞 0 评论 193 浏览 评分:0.0
C语言 自定义函数之字符串反转& 摘要:解题思路:注意事项:本写法没有参考价值,仅供纪念,用上strlen(计算字符串的实际长度不包括末尾的'\0')参考代码:#include<stdio.h>#define Long 20…… 题解列表 2022年11月16日 0 点赞 0 评论 164 浏览 评分:0.0
实数的打印JAVA 摘要:解题思路:注意事项:参考代码:import java.text.DecimalFormat;import java.util.Arrays;import java.util.Scanner;publi…… 题解列表 2022年11月16日 0 点赞 0 评论 196 浏览 评分:0.0
编写题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码: int res; int n; int k; scanf("%d",k); res = 0, 题解列表 2022年11月16日 0 点赞 0 评论 110 浏览 评分:0.0
编写题解 1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:注意事项:参考代码: int n; long res; res = 1; scanf("%d", &n); for (int i =&n 题解列表 2022年11月16日 0 点赞 0 评论 127 浏览 评分:0.0
C语言 自定义函数之字符串连接& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#define Long 20int main(){ char a[Long]; …… 题解列表 2022年11月16日 0 点赞 0 评论 153 浏览 评分:0.0