摘要: //计算机器运行时间 long i = 10000000L;clock_t start, finish;double duration;//测量一个事件持续的时间printf( "Time to do %ld empty loops is ", i) ;start = clock();while( 阅读全文
posted @ 2016-03-12 11:54 ocean2015 阅读(206) 评论(0) 推荐(0)
摘要: char c; clock_t start,end; time_t a,b; double var; int i,guess; srand(time(NULL));loop: printf("DO YOU WANT TO PLAY IT .('y' or 'n')\n"); while((c=get 阅读全文
posted @ 2016-03-12 11:53 ocean2015 阅读(313) 评论(0) 推荐(0)