Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- #include <stdio.h>
- using namespace std;
- int main()
- {
- char napis1[]= "Systemy operacyjne";
- char napis2[20];
- int dlugosc;
- printf("napis1: %s \n",napis1);
- dlugosc = strlen(napis1);
- printf("liczba znakow w napis1: %d \n",dlugosc);
- strupr(napis1);
- printf("napis1 (duze litery): %s \n",napis1);
- strlwr(napis1);
- printf("napis1 (male litery): %s \n",napis1);
- strcpy(napis2,napis1);
- printf("napis2: %s \n",napis2);
- strrev(napis2);
- printf("napis2 (odwrocony): %s \n",napis2);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement