char str[max] 当为str赋值时,确保str[max-1]为结束符“\0”,否则打印str时有可能产生乱码 “烫烫烫烫€”,因为无法判断该字符串结束位置,因此访问了其他内存中的垃圾数据,产生了数组越界。