#1025 数组插入处理 摘要:注意事项:不能只用<iostream>还要用其他的数据库(本人因此连败20次)参考代码:#include<iostream>#include<algorithm>#include<cstdio>usi…… 文章列表 2022年11月27日 0 点赞 0 评论 124 浏览 评分: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 评论 145 浏览 评分: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 评论 159 浏览 评分: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 评论 189 浏览 评分:0.0
笔记:题目1025 运用for循环实现在一个顺序数组中插入数字 摘要:1.思路是反这运用赋值语句实现 ```c #include int main() { int n[10]={0},number; for(int i=0;i…… 文章列表 2022年12月03日 0 点赞 0 评论 499 浏览 评分:0.0
笔记:自定义函数之字符提取 题目1033 摘要:```c #include #include void trs(char c[]) { char a[100]; int len=strlen(c); int t=0; for…… 文章列表 2022年12月03日 0 点赞 0 评论 265 浏览 评分:9.9
2到36进制转换(整数) 摘要:10进制转n进制: ```cpp void system_10_n(int num, int n) {//短除法 stack s;//定义栈 while (num > 0) {//定义…… 文章列表 2022年12月07日 0 点赞 0 评论 327 浏览 评分:9.9
如何将字符串中的大写字母转换为小写 摘要:```c //题目1124 将字符串大写字母变小写,其余的不变 //方法一 利用ASCII中字符的数值关系 #include #include int main() { char s[…… 文章列表 2022年12月07日 0 点赞 0 评论 305 浏览 评分:0.0
插入排序 摘要: #include int main() { int n; scanf_s("%d\n", &n); int arr [20] ; …… 文章列表 2022年12月10日 0 点赞 0 评论 374 浏览 评分:0.0
精品文章 求PI的两种常用方法 摘要:#求PI的两种方法 ##1. 正多边形逼近 这种方法就是祖冲之用的,不用多说了吧。 若一个正多边形的边长为b,边数为i,则当边长翻倍后, ``` i=2i b=sqrt(2-2*sqrt(…… 文章列表 2022年12月15日 0 点赞 0 评论 354 浏览 评分:9.9