对C++语言的浏览,供对C++语言有兴趣的读者作为参考
An Overview of C++
Douglas C. Schmidt
C++ Overview
An Overview of C++ Douglas C. Schmidt Professor d.schmidt@vanderbilt.edu doc.xuehai.net~schmidt/ Department of EECS Vanderbilt University (615) 343-8197
C++ was designed at AT&T Bell Labs by Bjarne Stroustrup in the early 80’s– The original cfront translated C++ into C for portability However, this was di cult to debug and potentially ine cient– Many native host machine compilers now exist e.g., Borland, DEC, GNU, HP, IBM, Microsoft, Sun, Symantec, etc. C++ is a mostly upwardly compatible extension of C that provides: 1. 2. 3. 4. Stronger typechecking Support for data abstraction Support for object-oriented programming Support for generic programming
doc.xuehai.net~schmidt/PDF/C++-overview.pdf June 20, 2010
Vanderbilt University
1
An Overview of C++
Douglas C. Schmidt
An Overview of C++
Douglas C. Schmidt
C++ Design Goals As with C, run-time e ciency is important– Unlike other languages (e.g., Ada) complicated run-time libraries have not traditionally been required for C++ Note, that there is no language-speci c support for concurrency, persistence, or distribution in C++ Compatibility with C libraries& traditional development tools is emphasized, e.g.,– Object code reuse The storage layout of structures is compatible with C e.g., support for X-windows, standard ANSI C library,& UNIX/WIN32 system calls via extern block– C++ works with the make recompilation utility Vanderbilt University 2
C++ Design Goals (cont’d) “As close to C as possible, but no closer”– i.e., C++ is not a proper superset of C→ backwards compatibility is not entirely maintained Typically not a problem in practice... Note, certain C++ design goals con ict with modern techniques for: 1. Compiler optimization– e.g., pointers to arbitrary memory locations complicate register allocation& garbage collection 2. Software engineering– e.g., separate compilation complicates inlining due to di culty of interprocedural analysis– Dynamic memory management is error-prone Vanderbilt University 3

3 (From Herb Sutter’s Fall ‘03 ISO C++ Standards Meeting Trip Report, 10/3/13) ISO C++ Timeline 4 ? 2014 by Leor Zolman An Overview of C++11...
and C++ Book: C++ How to Program (8th edition), Chapter 1 (36 pages) Object-Oriented Programming & C++ 01 Course Overview 4 Welcome to the course ...
C++面试题-4 c++经典面试题 含解析c++经典面试题 含解析隐藏>> 1、 标准建模...在图 1 中,您看到是有可能"参加简要介绍(attend overview)"和"报名研讨班(...
Overview by SeyedMasoud Sadjadi CSE 422 09/16/2003 4 Java Virtual Machine...C++ Java Overview by SeyedMasoud Sadjadi CSE 422 09/16/2003 23 Flow of...
C++Builder基础4_计算机软件及应用_IT/计算机_专业资料。文件系统驱动编程基础篇...Background and Overview》 ( 3, 4, 5 可用作参考,不严谨,且较陈旧) 4. ...
geant4-overview_英语学习_外语学习_教育专区。The GEANT4 simulation toolkit, ...C++ coding guidelines – scripts to verify their applications automatically –...
4页 2下载券 西安交通大学 C++ 上机实... 暂无评价 12页 1下载券 西安交大...Overview using namespace std; int main() { double e=1.0; double u=1....
anoverview 592 15.2 definingbaseandderivedclasses 594 15.2.1 definingabase...c++经典代码大全 69页 1下载券 C++Primer(第4版)习题解... 40页 1下载券 ...
? ? the C++ draft 8.5.4 List-initialization [dcl.init.list] [N1890=05-0150 ] Bjarne Stroustrup and Gabriel Dos Reis: (an overview of initialization...
c++11_-_file_IO_-_exception_handling_计算机软件...#endif Exception-Handling Overview CRational::CRational...{ Process ex2; } statement4; } function2 { ...

我要评论