标签:
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int x=2410;
int i;
char *str="http://www.wrxqh.com/applyTicketInfo/showRegInfo.action?id=";
FILE *myfile = fopen("list.text","w+");
for (i=0; i<=1253; i++)
{
fprintf(myfile,"%s",str);
fprintf(myfile,"%d",x);
fprintf(myfile,"%s","\n");//换行
x++;
}
fclose(myfile);
return 0;
}
标签:
原文地址:http://www.cnblogs.com/jhcla/p/5600364.html