摘要: Notes from C++ PrimerFile StateCondition state is used to manage stream state, which indicates if the stream is available or recoverable.State of stre... 阅读全文
posted @ 2015-01-27 22:17 kid551 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 1. Define variable return_code to record the function's status.int return_code = 0;2. Define the exit flag:exit_flag, which is used by goto. This flag... 阅读全文
posted @ 2015-01-27 17:43 kid551 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Notes from C++PrimerIn general, head file includes: class definition, declaration of extern variable and declaration of function.1. Head file is used ... 阅读全文
posted @ 2015-01-27 10:48 kid551 阅读(259) 评论(0) 推荐(0) 编辑
摘要: Compile Two Files:$ CC -c Main.cc Sales_item.cc # by default generates a.exe # some compilers generate a.o... 阅读全文
posted @ 2015-01-27 09:54 kid551 阅读(224) 评论(0) 推荐(0) 编辑