#include <iostream>
#include <string.h>
using namespace std;
int main()
{
char v[20],a[30],S1[100],S2[90];
cout<<"tasteaza o fraza"; cin.get(S1,100);cin.get( );
cout<<"tasteaza o alta fraza"; cin.get(S2,90);cin.get( );
strcat(S1,S2);
cout<<S1<<endl;
cout<<S2<<endl;cout<<"Sirul 1= ";cin.get(v,19);
cin.get();
cout<<"sirul 2= ";cin.get(a,30);
strcat(v,a);
cout<<v<<endl;
cout<<"noul sir de caractere are "<<strlen(v)<<"caractere";
return 0;
}
Niciun comentariu:
Trimiteți un comentariu