1234567
char *p="abagagaga"; std::string s(p,3); std::cout<<s; char arr[6]={'a','g','k','l','p'}; std::string str(arr,3); std::cout<<str;