`
joyhope
  • 浏览: 2385 次
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
Rule of Modularity: Write simple parts connected by clean interface Rule of Clarity: Clarity is better than cleverness Rule of Composition: Design programs to be connected with other programs. Rule of the Separation: Separate policy from mechanism; separate interfaces from engines. Rule of Simpli ...
Case study Case 1: struct A { ...} void Caller() {     struct A b=getA();  (1)         ... } struct A getA() {     struct A a;     a.xxx=xxx     ....         return a; } The (1)    getA() really return the address of a, the address in the stack which is destroyed, but now no one is using this sta ...
Global site tag (gtag.js) - Google Analytics