daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Mar 26th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top