自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void fenli(int n){ int g,s,b,q; g=n%10; s…… 题解列表 2023年11月26日 0 点赞 0 评论 204 浏览 评分:0.0
自定义函数之字符提取 摘要:解题思路:注意事项:参考代码#include<stdio.h>#include<string.h>void yy(char a[],char b[]){ int i,j=0; for(i=…… 题解列表 2023年11月26日 0 点赞 0 评论 293 浏览 评分:9.9
真服了,要换行输出 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdio.h>#define pi 3.1415926536int main(){ double r; sca…… 题解列表 2023年11月26日 0 点赞 0 评论 419 浏览 评分:0.0
c二维数组的转置 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3][3],b[3][3]; int i,j; for(i=0;i<3;i++) …… 题解列表 2023年11月26日 0 点赞 0 评论 220 浏览 评分:0.0
自定义函数处理素数s 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void su(int n){ int i; for(i=2;i<=n;i++) { if(n%i==0…… 题解列表 2023年11月26日 0 点赞 0 评论 210 浏览 评分:0.0
自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>void da(float a,float m,float n){ if(n>0) { printf(…… 题解列表 2023年11月26日 0 点赞 0 评论 238 浏览 评分:0.0
编写题解 2772: 苹果和虫子 摘要:解题思路:无注意事项:无参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,x,y; cin>>n>…… 题解列表 2023年11月26日 0 点赞 0 评论 426 浏览 评分:9.9
字符串中间和后边*号删除(用指针狠狠调试) 摘要:参考代码: ```c #include #include int fun(char *a) { while(*a=='*')//遍历过前导*,不做处理 { …… 题解列表 2023年11月26日 0 点赞 0 评论 306 浏览 评分:0.0
统计字符数(再初始化一个数组存26个字母的出现次数,以每个元素减去'a',得序号来存入数组) 摘要:参考代码: ```c #include #include int main() { int n; scanf("%d",&n); char s[1001]; while(~s…… 题解列表 2023年11月26日 0 点赞 0 评论 338 浏览 评分:0.0
奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() {int n,gold=0,silver=0,copper=0;scanf("%d",&n);int a[n][…… 题解列表 2023年11月25日 0 点赞 0 评论 702 浏览 评分:9.9