Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- #include <string.h>
- using namespace std;
- /*
- napisać funkcję na modyfikującą tablicę elementów typu unsigned char zgodnie z regułą:
- T[i]=255-T[i]
- */
- void konwertuj(unsigned char *T)
- {
- int i=0;
- while(T[i])
- {
- T[i]=255-T[i];
- i++;
- }
- }
- int main ()
- {
- unsigned char tekst[] = "Co ja kodze";
- konwertuj(tekst);
- cout << tekst;
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement