cw cw ***add some simple input and output operations ***when running the advance cases, a SegmentFault will occur.