摘要: 让自己习惯C++ 01.视c++为一个语言联邦 C Object Oriented C++ Template C++ STL C++ 高效编程守则视状况而变化,取决于你使用C++的哪个部分 02.尽量以const, enum, inline 替换#define (以编译器替换预处理器) 对于单纯常量 阅读全文
posted @ 2018-12-21 16:24 overfitover 阅读(141) 评论(0) 推荐(0) 编辑
摘要: IO特性 输入流特性 根据空格来读取和分割数据,其中空格的个数不影响数据的读取: cin n f s; 例如: 10 4.5 abd 和10 4.5 abd没有区别 按行读取数据: istream& getline (istream& is, string &str, char delim='\n' 阅读全文
posted @ 2018-12-21 11:34 overfitover 阅读(223) 评论(0) 推荐(0) 编辑