#include#include #include #define random(x) (rand()%x)FILE *fp; if( !(fp = fopen("rand.txt","w"))==NULL ) fclose(fp) ; //如果文件存在,则清空内容int frame_num1 = frame_num ;for (int x = 0 ; x
本文共 284 字,大约阅读时间需要 1 分钟。
#include#include #include #define random(x) (rand()%x)FILE *fp; if( !(fp = fopen("rand.txt","w"))==NULL ) fclose(fp) ; //如果文件存在,则清空内容int frame_num1 = frame_num ;for (int x = 0 ; x
转载于:https://my.oschina.net/itfanr/blog/195686