计算机C语言专业外文翻译
《计算机C语言专业外文翻译》由会员分享,可在线阅读,更多相关《计算机C语言专业外文翻译(18页珍藏版)》请在毕设资料网上搜索。
1、4856单词,8230汉字C# A History of C, C+, and C# The C# programming language was created in the spirit of the C and C+ programming languages. This accounts for its powerful features and easy learning curve. The same can't be said for C and C+, but because C# was created from t
2、he ground up, Microsoft took the liberty of removing some of the more burdensome features such as pointers. This section takes a look at the C and C+ languages, tracing their evolution into C#. The C programming language was originally designed for use on the UNIX operating system
3、. C was used to create many UNIX applications, including a C compiler, and was eventually used to write UNIX itself. Its widespread acceptance in the academic arena expanded to include the commercial world, and software vendors such as Microsoft and Borland released C compile
4、rs for personal computers. The original Windows API was designed to work with Windows code written in C, and the latest set of the core Windows operating system APIs remain compatible with C to this day. From a design standpoint, C lacked a detail that other languages such as Smal
5、ltalk had already embraced: the concept of an object. You'll learn more about objects in Chapter 8, " Writing Object-Oriented Code." For now, think of an object as a collection of data and a set of operations that can be performed on that data. Object-style coding cou
6、ld be accomplished using C, but the notion of an object was not enforced by the language. If you wanted to structure your code to resemble an object, fine. If you didn't, fine. C really didn't care. Objects weren't an inherent part of the language, so many
7、 people didn't pay much attention to this programming paradigm. After the notion of object-oriented development began to gain acceptance, it became clear that C needed to be refined to embrace this new way of thinking about code. C+ was created to embody this refinement.
8、 It was designed to be backwardly compatible with C (such that all C programs would also be C+ programs and could be compiled with a C+ compiler). The major addition to the C+ language was support for this new object concept. The C+ language added support for classes (which are &qu
9、ot;templates" of objects), and enabled an entire generation of C programmers to think in terms of objects and their behavior. The C+ language is an improvement over C, but it still has some disadvantages. C and C+ can be hard to get a handle on. Unlike easy-to-use languages l
10、ike Visual Basic, C and C+ are very "low level" and require you to do a lot of coding to make your application run well. You have to write your own code to handle issues such as memory management and error checking. C and C+ can result in very powerful applications, but y
11、ou need to ensure that your code works well. One bug can make the entire application crash or behave unexpectedly. Because of the C+ design goal of retaining backward compatibility with C, C+ was unable to break away from the low level nature of C. Microsoft designed C# to r
12、etain much of the syntax of C and C+. Developers who are familiar with those languages can pick up C# code and begin coding relatively quickly. The big advantage to C#, however, is that its designers chose not to make it backwardly compatible with C and C+. While this may seem like
13、 a bad deal, it's actually good news. C# eliminates the things that makes C and C+ difficult to work with. Because all C code is also C+ code, C+ had to retain all of the original quirks and deficiencies found in C. C# is starting with a clean slate and without any compatibilit
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中设计图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机 语言 专业 外文 翻译
