int main()
{
string a, b, c;
a = "this is a string"; // easy assigning
b = a; // copy hoye gelo! :O
c = a + b // c te rakhlam a ar b er concatation
cout << c << endl; // print korlam
printf("%s\n", c.c_str() ); // printf diyei korlam na hoy
cout << c.size() << endl; // length print korlam
for(int i=0; i<c.size(); i++) cout << c[i] ;
// ekta ekta kore character print korlam
return 0;
}
No comments:
Post a Comment