跟打练习 难度 2
string 是会自动伸缩的“字的盒子”。(本关点「▶ 运行」会自动用真实 g++ 编译器,和评测机一样,放心跑!)
用 string 要 #include <string>;s.size() 取长度;s[i] 取第 i 个字符,和数组一样从 0 数。