void set(stringy&st,const charx)
{
st.ct=strlen(x)+1;
st.str=new char[st.ct];
strcpy_s(st.str,st.ct,x);
}
void show(const stringy&st,const int n)
{
for(int i=0;i<n;i++)
cout<<st.str<<endl;
}
void show(const charx,const int n)
{
for(int i=0;i<n;i++)
cout<<x<<endl;
}
给st初始化为st.ct个字符x
打印st的前n字符
打印n遍字符x