文章详情
时间:2010-07-06 来源:hnrainll
#include <stdio.h> #include <stdlib.h> #include <time.h> int main(int argc, char *argv[]) { long time1; int i, time2; time1 = time(NULL); printf("%ld\n", time1); time2 = (unsigned)time1/2; printf("%ld\n", time2); srand(time2); for(i = 0; i< 10; i++) { printf("%d ", rand()); } printf("\n"); system("pause"); return 0; }
辰域智控app
网医联盟app
汇丰汇选App
1970-01-01