博客园 :: :: 博问 :: 闪存 :: 新随笔 :: :: :: 管理 ::

 

 

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

  

 

posted on 2016-06-20 14:09  #include<stdio.h>  阅读(249)  评论(0编辑  收藏  举报