Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- #include <stdio.h>
- using namespace std;
- int main()
- {
- char imie[20], nazwisko[20];
- int dlugosc;
- cout<<"podaj imie:";
- cin>>imie;
- cout<<"podaj nazwisko:";
- cin>>nazwisko;
- strcat(imie," ");
- strcat(imie,nazwisko);
- cout<<"Nazywasz sie:"<<imie<<endl;
- dlugosc=strlen(imie);
- cout<<"imie i nazwisko sklada sie z "<<dlugosc<<" znakow";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement