正在加载图片...
最病 A Requirement changes again bool ptFlag= false bool punch Flag= false / remember to reset these flags char void Copy o Read Keyboard Write Printer while((c=(ptFlag? RdPtO RdKbdo)!=EOF Read Paper tape Paper tape punch punch Flag? WrtPunch(c) WrtPrt(c) Institute of Computer Software 2021/2/12 Nanjing University2021/2/2 Institute of Computer Software Nanjing University 25 Requirement changes again! Copy Read Keyboard Write Printer char char Read Paper Tape char Paper tape punch char bool ptFlag = false; bool punchFlag = false //remember to reset these flags void Copy(){ int c; while ((c=(ptFlag?RdPt(): RdKbd())!=EOF) punchFlag ? WrtPunch(c) : WrtPrt(c); }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有