以string为例:
string
string s; cin>>s; int n=s.length(); s=" "+s; // 将s[0]设为空 for(int i=0;i<n;i++){ // for 0->n-1 而不是 1->n,否则会导致第一列更新不到 ···