编写一函数,由实参传来一个字符串,统计此字符串中字母、数字、空格和其它字符的个数,在主函数中输入字符串以及输出上述结果。 只要结果,别输出什么提示信息。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void x(char a[], int b[]) { int i, t = 0,j = 0,k =…… 题解列表 2024年12月18日 0 点赞 0 评论 679 浏览 评分:0.0
简单易想到 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void fun(int a[],int m,int n){ int b[n],i,j=0; for(i=n-m;i<n;i++){ …… 题解列表 2024年12月18日 2 点赞 0 评论 476 浏览 评分:0.0
直接输入然后输出 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; int i; for(i=0;i<10;i++){ sca…… 题解列表 2024年12月18日 0 点赞 0 评论 818 浏览 评分:0.0
数组插入处理,从最后一个往前取值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; int b,i,k; for(i=0;i<9;i++){ …… 题解列表 2024年12月18日 1 点赞 0 评论 533 浏览 评分:0.0
while循环的简单使用 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int x(int n) { int sum = 0; if (n < 2) return 0; while (n…… 题解列表 2024年12月17日 0 点赞 0 评论 364 浏览 评分:0.0
2852配对碱基链 摘要:解题思路:注意事项:#n=include<string>是引用strlen函数的头文件参考代码:#include<stdio.h>#include<string.h>int main(){ ch…… 题解列表 2024年12月17日 3 点赞 0 评论 217 浏览 评分:10.0
3060: 合并石子 区间DP 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量n和数组a、dp int n, a[110], dp[1…… 题解列表 2024年12月17日 1 点赞 0 评论 173 浏览 评分:0.0
利用等比数列前n项和公式来解决问题 摘要:解题思路:利用等比数列前n项和公式注意事项:该等比数列的项数为n-1个项参考代码:#include <stdio.h>#include <math.h>int main(){ double ti…… 题解列表 2024年12月17日 1 点赞 0 评论 216 浏览 评分:10.0
简单易想到 摘要:解题思路:进行字符串拼接注意事项:参考代码:#include<stdio.h>#include<string.h>void fun(char*a,char*b){ char c[100]; int i…… 题解列表 2024年12月17日 1 点赞 0 评论 446 浏览 评分:0.0