#include <iostream>
#include <string>
#include <cstring>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
cout<<"input tht string:";
char temp[100];
cin.getline(temp,100);
string str(temp);
char ch='a';
str=str+ch;
cout<<str<<endl;
str+=temp;
cout<<str<<endl;
cout<<"................."<<endl;
string str2(temp,temp+2);
cout<<str2<<endl;
return 0;
}
#include <string>
#include <cstring>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
cout<<"input tht string:";
char temp[100];
cin.getline(temp,100);
string str(temp);
char ch='a';
str=str+ch;
cout<<str<<endl;
str+=temp;
cout<<str<<endl;
cout<<"................."<<endl;
string str2(temp,temp+2);
cout<<str2<<endl;
return 0;
}