关闭

The C++ Programming Language 学习笔记(ch1 ,ch2)

标签: c++paradigmstypeseachfunctionobject
523人阅读 评论(0) 收藏 举报
分类:

1.philosohpy of the design of C++
 .close to the machine
 .close to the problem to be solved
2.How does one write good programs in C++?
 .Know what you want to say.
 .Practice.Imitate good writing.

3.Programming Paradigms

 Procedural Programming
 .Decide which procedures you want;
  use the best algorithms you can find.
 
 Modular Programming (data-hiding principle)
 .Decide which modules you want;
  partition the program so that data is hidden within modules.

 Data Abstraction
  .Decide which types you want;
  .provide a full set of operations for each type.
 
 Object Oriented Programming
  .Decide which classes you want;
  .provide a full set of operations for each class;
  .make commonality explicitly by using inheritance.

 Generic Programming
  .Decide which algorithms you want;
  .parameterize them so that they work for a variety of   suitable types and data structures.
4.vtbl:virtual function table

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:52370次
    • 积分:721
    • 等级:
    • 排名:千里之外
    • 原创:14篇
    • 转载:31篇
    • 译文:0篇
    • 评论:18条
    文章分类
    最新评论