Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- void kodowanie(int tablica[100]) {
- int i = 0;
- for (i; i < 100; i++) {
- tablica[i] = tablica[i] + 1;
- }
- }
- int main(int argc, char *argv[]) {
- FILE *plik, *plik1;
- char alf[100];
- printf("Michael Sledz");
- plik=fopen("jakiscos.txt", "r");
- fgets(alf, 100, plik);
- plik1=fopen("wynik.txt", "w");
- kodowanie(alf);
- int i = 0;
- for (i; i < 100; i++) {
- fprintf(plik1, "%s", alf[i]);
- }
- _fcloseall();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement