freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

數據庫和c語言外文翻譯-c語言-全文預覽

2025-06-16 01:38 上一頁面

下一頁面
  

【正文】 Basic’s syntax was inherited from early versions of BASIC (which, in turn, was designed to be intuitively simple for beginning programmers to understand, rather than to write large mercial applications), it didn’t really lend itself to wellstructured or objectoriented programs. C++, on the other hand, has its roots in the ANSI C++ language definition. It isn’t pletely ANSI pliant for the simple reason that Microsoft first wrote its C++ piler before the ANSI definition had bee official, but it es close. Unfortunately, this has led to two problems. First, ANSI C++ has its roots in a decadeold state of technology, and this shows up in a lack of support for modern concepts (such as Unicode strings and generating XML documentation), and in some archaic syntax structures designed for the pilers of yesteryear (such as the separation of declaration from definition of member functions). Second, Microsoft has been simultaneously trying to evolve C++ into a language that is designed for highperformance tasks on Windows, and in order to achieve that they’ve been forced to add a huge number of Microsoftspecific keywords as well as various libraries to the language. The result is that on Windows, the language has bee a plete mess. Just ask C++ developers how many definitions for a string they can think of: char*, LPTSTR, string, CString (MFC version), CString (WTL version), wchar_t*, OLECHAR*, and so on. Now enter .NET—a pletely new environment that is going to involve new extensions to both languages. Microsoft has gotten around this by adding yet more Microsoftspecific keywords to C++, and by pletely revamping Visual Basic into Visual Basic .NET, a language 1 that retains some of the basic VB syntax but that is so different in design that we can consider it to be, for all practical purposes, a new language. It’s in this context that Microsoft has decided to give developers an alternative—a language designed specifically for .NET, and designed with a clean slate. Visual C .NET is the result. Officially, Microsoft describes C as a “simple, modern, objectoriented, and typesafe programming language derived from C and C++.” Most independent observers would probably change that to “derived from C, C++, and Java.” Such descriptions are technically accurate but do little to convey the beauty or elegance of the language. Syntactically, C is very similar to both C++ and Java, to such an extent that many keywords are the same, and C also shares the same block structure with braces ({}) to mark blocks of code, and semicolons to separate statements. The first impression of a piece of C code is that it looks quite like C++ or Java code. Behind that initial similarity, however, C is a lot easier to learn than C++, and of parable difficulty to Java. Its design is more in tune with modern developer tools than both of those other languages, and it has been designed to give us, simultaneously, the ease of use of Visual Basic, and the high performance, lowlevel memory access of C++ if required. Some of the features of C are: ? Full support for classes and objectoriented programming, including both interface and implementation inheritance, virtual functions, and operator overloading. ? A consistent and welldefined set of basic types. ? Builtin support for automatic generation of XML documentation. ? Automatic cleanup of dynamically allocated memory. ? The facility to mark classes or methods with userdefined attributes. This can be useful for documentation and can have some effects on pilation (for example, marking methods to be piled only in debug builds). ? Full access to the .NET base class library, as well as easy access to the Windows API (if you really need it, which won’t be all that often). ? Pointers and direct memory access are available if required, but the language has been designed in such a way that you can work without them in almost all cases. ? Support for properties and events in the style of Visual Basic. ? Just by changing the piler options, you can pile either to an executable or to a library of .NET ponents that can be called up by other code in the same way as ActiveX controls (COM ponents). ? C can be used to write dynamic Web pages and XMLWeb services. Most of the above statements, it should be pointed out, do also apply to Visual Basic .NET and Managed C++. The fact that C is designed from the start to work with .NET, however, means that its support for the features of .NET is both more plete, and offered within the context of a more suitable syntax than for those other languages. While the C language itself is 2 very similar to Java, there are some improvements: in particular, Java is not designed to work with the .NET environment. Before we leave the subject, we should point out a couple of limitations of C. The one area the language is not designed for is timecritical or extremely high performance code—the kind where you really are worried about whether a loop takes 1,000 or 1,050 machine cycles to run through, and you need to clean up your resources the millisecond they are no longer needed. C++ is likely to continue to reign supreme among lowlevel languages in this area. C lacks certain key facilities needed for extremely high performance apps, including the ability to specify inline functions and destructors that are guaranteed to run at particular points in the code. However, the proportions of applications that fall into this category are very low. 3 中文 譯文 : 《 C的優(yōu)點 》 C在某種程度上可以看作是 .NET 面向 Windows 環(huán)境的一種編程語言。 對于 Visual Basic 來說,它的主要優(yōu)點是很容易理解,許多編程工作都很容易完成,基本上隱藏了 Windows API 和 COM 組件結構的內涵。它與 ANSI 不完全兼容,因為Microsoft 是在 ANSI 定義標準化之前編寫 C++編譯器的,但已經相當接近了。其結果是在 Windows 中,該語言成為了一種非常雜亂的語言。在這里, Microsoft 決定給開發(fā)人員另一個選擇 —— 專門用于 .NET、具有新起點的語言, 即 Visual C .NET。從語法上看, C非常類似于 C++和 Java,許多關鍵字都是相同的, C也使用類似于 C++和 Java的塊結 構
點擊復制文檔內容
畢業(yè)設計相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1