笔记:自定义函数之字符提取 题目1033 摘要:```c #include #include void trs(char c[]) { char a[100]; int len=strlen(c); int t=0; for…… 文章列表 2022年12月03日 0 点赞 0 评论 258 浏览 评分:9.9
笔记:题目1025 运用for循环实现在一个顺序数组中插入数字 摘要:1.思路是反这运用赋值语句实现 ```c #include int main() { int n[10]={0},number; for(int i=0;i…… 文章列表 2022年12月03日 0 点赞 0 评论 473 浏览 评分:0.0
笔记:通过自定义函数求最大公约数,最小公倍数(等值算法) 摘要:```c //等值算法 #include int gys(int a,int b); int gbs(int m,int n); int gys(int a,int b) { int …… 文章列表 2022年11月30日 0 点赞 0 评论 182 浏览 评分:0.0
笔记: 1026 ? 摘要:```c #include int main() { int number[10]; for(int i=0;i=0;j--) printf("%d ",number[j]); …… 文章列表 2022年11月30日 0 点赞 0 评论 153 浏览 评分:0.0
笔记:题目1021 摘要:笔记:#include<stdio.h>int main(){ int a; scanf("%d",&a); double x1=1.0,x,t; //x1可以任意赋值 while(1) { x=…… 文章列表 2022年11月29日 0 点赞 0 评论 139 浏览 评分:0.0
#1025 数组插入处理 摘要:注意事项:不能只用<iostream>还要用其他的数据库(本人因此连败20次)参考代码:#include<iostream>#include<algorithm>#include<cstdio>usi…… 文章列表 2022年11月27日 0 点赞 0 评论 122 浏览 评分:0.0
笔记:求一个未知位数的数的各位数之和 摘要:#include<stdio.h> int main() { int n,sum; scanf("%d",&n); while(n>0) { sum +=n%10; n…… 文章列表 2022年11月27日 0 点赞 0 评论 256 浏览 评分:0.0
成绩评定 (C语言题解) 摘要:int类型a/10不会四舍五入,直接舍去小数部分。#include <stdio.h>int main(){ int a; scanf("%d",&a); switch(a/10)…… 文章列表 2022年11月26日 0 点赞 0 评论 148 浏览 评分:0.0
为什么在第一个输出的字符类型总是会比实际少1,为什么 摘要:#includeint number(char c) { int letter=0,number=0,kong=0,other=0; while((c=getchar())!='\n'…… 文章列表 2022年11月24日 0 点赞 0 评论 147 浏览 评分:2.0
自定义函数去字符串拼接 摘要:#include<stdio.h>char *str_concat(char *s1,char *s2){ char *p=s1,*q=s2; while(*p!='\0') p++;…… 文章列表 2022年11月24日 0 点赞 0 评论 165 浏览 评分:0.0