首页   按字顺浏览 期刊浏览 卷期浏览 Foundations for native C++ styles
Foundations for native C++ styles

 

作者: Andrew Koenig,   Bjarne Stroustrup,  

 

期刊: Software: Practice and Experience  (WILEY Available online 1995)
卷期: Volume 25, issue S4  

页码: 45-86

 

ISSN:0038-0644

 

年代: 1995

 

DOI:10.1002/spe.4380251304

 

出版商: John Wiley&Sons, Ltd.

 

关键词: programming design;object‐oriented;herring;generic style

 

数据来源: WILEY

 

摘要:

AbstractOver the past decade, C++ has become the most commonly used language for introducing object‐oriented programming and other abstraction techniques into production software. During this period, C++ has evolved to meet the challenges of production systems. In this, C++ differs radically from languages that come primarily from academic or research environments, and from less widely used languages. Although C++ has also been extensively used in academia and for research, its evolution was driven primarily by feedback from its use in industrial applications.In this paper, we focus on three design areas key to successful C++ use. In doing so, we explore fundamental C++ concepts and facilities and present distinctive C++ design and programming styles that have evolved to cope with the stringent demands of everyday systems building. First we explore C++'s support for concrete data types and containers and give examples of how the C++ generic programming facilities, together with well‐designed libraries, can yield flexibility and economy of expression. Next we examine some uses of class hierarchies, touching on issues including encapsulation, interface design, efficiency, and maintainability. Finally, we note that languages succeed for reasons that are not entirely technical and review the background for C++'s success.This paper is not a C++ tutorial. However, it does include enough code examples and supporting commentary that readers familiar with programming languages in general but unfamiliar with C++ can grasp the key C++ language constructs and programming techniq

 

点击下载:  PDF (2335KB)



返 回