rozmiar macierzy 5x4
| 1 2 3 4 |
| 5 6 7 8 |
| 9 6 0 6 |
| 2 4 9 5 |
| 7 8 1 2 |
Jak wczytać samą tę macierz do tablicy dwuwymiarowej
Kod: Zaznacz cały
#include <stdio.h>
main()
{
FILE *zw;
char zp;
zw=fopen("plik.txt","r");
while(zp!=EOF)
{
zp=fgetc(zw);
if ((int)zp>47 && (int)zp<58){
printf("%c",zp);}
}
getch();
return 0;
}