
C
yhstarry
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C语言产生十个随机两位数,输出最大值、最小值、平均数
题目描述:产生十个随机两位数,输出最大值、最小值、平均数。#include <stdio.h>#include <stdlib.h>#include <time.h> #include <algorithm>using namespace std;//int random(int m){// return rand()%m...原创 2020-04-30 12:06:16 · 8643 阅读 · 0 评论 -
查找x在数组中的位置
输入一个数n(1<=n<=200),然后输入n个数值各个不相同的数,再输入一个值x,输出这个值在数组中的下标。输入:41 2 3 43输出:2#include <cstdio>const int maxn=210;int a[maxn];int main(){ int n,x; while(scanf("%d",&n)!=EOF){ ...原创 2020-03-31 11:35:34 · 1541 阅读 · 1 评论 -
第一次见面
欢迎各位指导,谢谢您的光临!原创 2019-08-25 15:49:42 · 166 阅读 · 0 评论