const std::string::size_type cols = greeting.size() + pad * 2 + 2;
为什么string::size_type?int应该工作!它持有数字!
string::size_type
int
c++ string int size-type
c++ ×1
int ×1
size-type ×1
string ×1