Guest User

Untitled

a guest
Jan 23rd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. # define M 500
  4. int main()
  5. {
  6. struct sygnal
  7. {
  8. float poczatek;
  9. float interwal;
  10. float koniec;
  11. float *tablica;
  12. };
  13. struct sygnal pierwszy;
  14. char FileName [M];
  15. char wybor;
  16. FILE *f;
  17. printf("Podaj nazwe pliku(wraz z formatem): ");
  18. scanf ("%s", FileName);
  19. printf("Dane oddzielane przecinkiem czy srednikiem?\n, - ,\nco innego - ;\n");
  20. scanf("%s",&wybor);
  21. f=fopen(FileName,"r");
  22. fscanf(f,"%g %c %g \n", x ,wybor, pierwszy.tablica[i]);
  23. system("pause");
  24. return 0;
  25. };
Add Comment
Please, Sign In to add comment