Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- # define M 500
- int main()
- {
- struct sygnal
- {
- float poczatek;
- float interwal;
- float koniec;
- float *tablica;
- };
- struct sygnal pierwszy;
- char FileName [M];
- char wybor;
- FILE *f;
- printf("Podaj nazwe pliku(wraz z formatem): ");
- scanf ("%s", FileName);
- printf("Dane oddzielane przecinkiem czy srednikiem?\n, - ,\nco innego - ;\n");
- scanf("%s",&wybor);
- f=fopen(FileName,"r");
- fscanf(f,"%g %c %g \n", x ,wybor, pierwszy.tablica[i]);
- system("pause");
- return 0;
- };
Add Comment
Please, Sign In to add comment