Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //FOR (15 lines)
- int tiskMaticeDoSouboru(FILE *soubor, struct mat *m)
- {
- int i; //REMOVE "= 0" !!!!
- int j; //...
- for(i=0;i<m->pRadku;i++)
- {
- for(j=0;j<m->pSloupcu;j++)
- {
- fprintf(soubor,"%lf ", m->matice[i][j]);
- }
- fprintf(soubor,"\n");
- }
- fprintf(soubor,"\n");
- return 0;
- }
- //WHILE (19 lines)
- int tiskMaticeDoSouboru(FILE *soubor, struct mat *m)
- {
- int i;
- int j;
- i = 0;
- while (i<m->pRadku)
- {
- j = 0;
- while (j<m->pSloupcu)
- {
- fprintf(soubor,"%lf ", m->matice[i][j]);
- j++;
- }
- fprintf(soubor,"\n");
- i++;
- }
- fprintf(soubor,"\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement