exercises 1.16-1.19: char arrays (getLine, copyLine)