
编程建议
jemmy
这个作者很懒,什么都没留下…
展开
-
Use iterators and [] rather than at() when you want to optimize speed;
Use iterators and [] rather than at() when you want to optimize speed;原创 2005-08-19 17:04:00 · 840 阅读 · 0 评论 -
Don't use parentheses after a no-argument manipulator;
Dont use parentheses(圆弧) after a no-argument manipulator;原创 2005-08-30 13:56:00 · 915 阅读 · 0 评论 -
You don't need to modify istream or ostream to add new > operators;
You dont need to modify istream or ostream to add new > operators;原创 2005-09-01 08:56:00 · 916 阅读 · 0 评论 -
Represent concepts as classes;
Represent concepts as classes;原创 2005-09-10 13:53:00 · 858 阅读 · 0 评论 -
Not every function needs to handle every possible error;
Not every function needs to handle every possible error;原创 2005-09-17 10:27:00 · 1316 阅读 · 0 评论 -
If a class has a pointer member, it needs copy operations (copy constructor and copy assignment); sec10.4.4.1.
If a class has a pointer member, it needs copy operations (copy constructor and copy assignment); sec10.4.4.1.原创 2006-01-16 21:08:00 · 1012 阅读 · 0 评论 -
Use string::npos to indicate ``the rest of the string;''
Use string::npos to indicate ``the rest of the string;原创 2006-02-19 10:04:00 · 891 阅读 · 0 评论 -
Use explicit instantiation to minimize compile time and link time;
Use explicit instantiation to minimize compile time and link time;原创 2006-06-24 22:18:00 · 1192 阅读 · 0 评论