Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #include <iostream>
  2. #include <string.h>
  3. #include <stdio.h>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. char napis1[]= "Systemy operacyjne";
  10. char napis2[20];
  11. int dlugosc;
  12. printf("napis1: %s \n",napis1);
  13. dlugosc = strlen(napis1);
  14. printf("liczba znakow w napis1: %d \n",dlugosc);
  15. strupr(napis1);
  16. printf("napis1 (duze litery): %s \n",napis1);
  17. strlwr(napis1);
  18. printf("napis1 (male litery): %s \n",napis1);
  19. strcpy(napis2,napis1);
  20. printf("napis2: %s \n",napis2);
  21. strrev(napis2);
  22. printf("napis2 (odwrocony): %s \n",napis2);
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement