String 类可以用cin流式读取。 在用scanf读取时,必须声明长度。不声明长度,直接scanf会出现运行时错误。 #include <stdio.h>. #include <string>.
確定! 回上一頁