Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- FILE* fin = NULL;
- if ((fin = fopen("plik.txt", "rt")) == NULL)
- {
- perror("ERROR open input file \n");
- return 1;
- }
- FILE* fout = fopen("wynik.txt", "w");
- if (fout == NULL)
- {
- fclose(fin);
- perror("ERROR open output file \n");
- return 2;
- }
- while (!feof(fin))
- {
- char c = fgetc(fin);
- if ((c >= 'a') && (c <= 'z'))
- c -= 0x20;
- if(!feof(fin))
- fputc( c, fout );
- }
- fclose(fin);
- fclose(fout);
- printf("Done: \n");
- return 0;
- }
- // ----------------------------------------------------------------------WSKAZNIKI----------------------------------------------------------------------------------------
- // T x; zmienna typu T, np int x;
- // T* p; zmienna, wskaznik do komorki pamieci typu T(Adres) np int* -p;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement