trojanxem

Untitled

Mar 2nd, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3. int main()
  4. {
  5. FILE *test;
  6. int d,e;
  7.   test=fopen("test.txt", "r+t");
  8.   fscanf(test, "%d", &d);
  9.   printf("%d\n", d);
  10.   fscanf(test, "%d", &e);
  11.   printf("%d\n", e);
  12.   fclose(test);
  13.   printf("Wynik to: %d" ,e+d);
  14. getch();
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment