隨機
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main(void)
{
int i,r[55];
srand(time(NULL));
for(i=1;i<=54;i++)
{
r[i]=65+rand()%333;
printf("r[%2d]= %3d\t",i,r[i]);
if(i%5==0)printf("\n");
}
system("pause");
return 0;
}
Today's Visitors: 0 Total Visitors: 9
歷史上的今天:

Sealed (Aug 24)
Only friends can post a comment, Login first