readinput 从stream 里面读取num长度的数据 到str 这个地址getinput 将input地址里面长度为inputSize的数据写到prompt里
readinput 是数据流,scanf是像txt文件的字符数据。不一样的。