Jak zrobić to, żeby nie było błędu przy cos.liczba i cos.napis?
struct stuktura
{
char napis[ROZMIAR];
int liczba;
};
int wiersz(FILE* f, struct struktura* cos)
{
while (!feof(f))
{
fscanf(f, "%d", cos.liczba);
fscanf(f, "%s", cos.napis);
}
}
int main(void)
{
struct struktura cos[5];
FILE* f, * s;
wiersz(f,cos[1]);
}