#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;
}