设为首页收藏本站

SKY外语、计算机论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 7213|回复: 0
打印 上一主题 下一主题

[问题] 请教给题目,想不起怎么做了

[复制链接]

0

主题

0

好友

138

积分

注册会员

Rank: 2

性别
保密
楼主
发表于 2012-11-3 12:40:00 |显示全部楼层
本帖最后由 sky_yx 于 2015-12-30 14:17 编辑

#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
int main(){
    unsigned int a[6],b;
    srand(unsigned(time(0)));
    for(int i=0;i<6;i++) cout<<(a=rand())<<"  ";
    cout<<endl;
    b=a[0];
    for(int i=0;i<6;i++) if(b>a) b=a;
    cout<<b<<endl;   
    return 0;
}
25573  24549  15998  3481  30599  11308
3481
请按任意键继续. . .

只学vb.net/C/C++,其它的没精力啊
回复

使用道具 评分 举报

您需要登录后才可以回帖 登录 | 立即注册


手机版|SKY外语计算机学习 ( 粤ICP备12031577 )    

GMT+8, 2024-5-16 03:23 , Processed in 0.134924 second(s), 30 queries .

回顶部