Advertisement
kk258966

4/30 C++ 練習三

Apr 30th, 2014
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main(void)
  4. {
  5.     FILE *read;
  6.     read = fopen("input.txt","r");
  7.     int a,b,c,d,e,f;
  8.     fscanf(read, "%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f);
  9.     printf("%d %d %d %d %d %d \n",a,b,c,d,e,f);
  10.     fclose(read);
  11.  
  12.  
  13.     system("pause");
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement