Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include "my_func.cpp"
- extern char* ladny_tekst();
- extern int* dlugosci_slow();
- extern void wyrownanie_do_prawej();
- int main(int argc, char* argv[])
- {
- int szerokosc;
- printf("Podaj szerokosc linii: ");
- scanf("%d", &szerokosc);
- if (szerokosc > 0) // szerokosc musi byc wieksza od zera
- {
- char* text = ladny_tekst();
- int* dlugosci_wyrazow = dlugosci_slow(szerokosc, text);
- wyrownanie_do_prawej(text, dlugosci_wyrazow, szerokosc);
- }
- else
- printf("Szerokosc nie moze byc rowna 0.\n\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement