Effective C++阅读笔记(2)Item 1: View C++ as a federation of languages
2012-11-01 09:27
495 查看
Item 1: View C++ as a federation of languages |
programming language, one supporting a combination ofprocedural,
object-oriented,functional,
generic, andmetaprogramming
features. This power and flexibility make C++ a tool without equal, but can also cause some confusion. All the "proper usage" rules seem to have exceptions.
The easiest way is to view C++ not as a single language but asa federation of related languages.To make sense of C++,
you have to recognize its primary sublanguages. Fortunately, there are only four:
C Way down deep, C++ is still based on C
Object-Oriented This part of C++ is what C with Classes was all about: classes (including constructors and destructors),
encapsulation, inheritance, polymorphism, virtual functions (dynamic binding), etc.
Template C++ This is the generic programming part of C++.
The STL The STL is a template library
Keep these four sublanguages in mind
C++, then, isn't a unified language with a single set of rules; it's afederation
of four sublanguages, each with its own conventions. Keep these sublanguages in mind, and you'll find that C++ is a lot easier to understand.
相关文章推荐
- Effective C++ Item 1:View C++ as a federation of languages
- Item 01 : View C++ as a federation of languages.
- Item 01: View C++ as a federation of languages
- Effective C++ -- Item 1: View c++ as a federation of languages
- Effective C++:Item 1: View C++ as a federation of languages
- effective C++ Item 1: View C++ as a federation of languages
- Item 1: View C++ as a federation of languages(Effective C++)
- effective C++ 1 view c++ as a federation of languages
- 1.视C++为一个语言联邦 -- View C++ as a federation of languages
- Effective C++,rule 1,View C++ as a federation of languages
- 条款01:视C++为一个语言联邦(View C++ as a federation of languages)
- 笔记:View C++ as a federation of language
- comparing c++ and c# -- a perspective from high level languages such as C#
- In Android how to display one view as overlay on top of another view?
- It appears as though you do not have permission to view information for any of the hosts you request
- There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key ''.
- <Effective Mordern C++>笔记:Item 4:Knowing how to view deduced types .
- [转]Windows环境下利用“共享内存”实现进程间通信的C/C++代码---利用CreateFileMapping和MapViewOfFile
- 1./** */等记录;2.tableview的item当控件;3.;4.lineedit下划线;android for qt out of memory;
- Windows环境下利用“共享内存”实现进程间通信的C/C++代码---利用CreateFileMapping和MapViewOfFile