标题:请教个掷筛子的简单问题
取消只看楼主
daily
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2006-2-17
 问题点数:0 回复次数:0 
请教个掷筛子的简单问题

#include<stdlib.h>
#include<stdio.h>
#include<time.h>
mian()
{
int i;
srand(time(NULL));
for(i=1;i<=10;i++)
{
printf("%10d",1+(rand()%6));
if(i%5==0)
printf("\n");
}
return 0;
}

,不知道有什么错误,就是调试不好

搜索更多相关主题的帖子: include return 筛子 
2006-02-21 21:00



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-46515-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.285028 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved