reading multiple variable types from single line in file C

后端 未结 5 1325
无人及你
无人及你 2021-01-27 14:09

Alright I\'ve been at this all day and can\'t for the life of me get this down, maybe you chaps can help. I have a file that reads as follows

1301,1055150

5条回答
  •  南笙
    南笙 (楼主)
    2021-01-27 14:53

    1.There is a syntax error in

    while(result != NULL){
    
          printf(".....);
    
          ......
    
    }
    
    }//error
    
    1. fscanf(inputf, "%s", lastname); can't read a line ,fscanf will stop when it comes across an space

提交回复
热议问题