Advertisement
Guest User

wtf

a guest
Mar 27th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.  
  5. void readfile_b(FILE * fp){
  6.    
  7.     printf("t2");
  8.     int cand_num;
  9.     fscanf(fp,"%d",&cand_num);
  10. }
  11.  
  12.  
  13. int main(int argc,char *argv[]) {
  14.     printf("t1");
  15.     if (1<argc<3){
  16.         FILE * fp;
  17.         fp = fopen(argv[2],"r");
  18.         readfile_b(fp);
  19.     }
  20.  
  21.  
  22.  
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement