【正文】
amic 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 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. 出處: Professional CThird Edition 作者: Simon Robinson Christian Nagel Jay Glynn Man Skinner Karli Watson Bill Evjen 。其二是 C缺乏性能極高的應用程序所需 要的關鍵功能,包括保證在代碼的特定地方運行的內聯(lián)函數(shù)和析構函數(shù)。其一是 該語言不適用于編寫時間急迫或性能非常高的代碼,例如一個要運行 1000 或1050 次的循環(huán),并在不需要這些循環(huán)時,立即清理它們所占用的資源。 C語言本身非常類似于 Java,但其中有一些改進,因為 Java并不是為應用于 .NET環(huán)境而設計的。 應該指出,對于上述大多數(shù)特性, Managed C++也具備。 ● 改變編譯器選項 ,可以把程序編譯為可執(zhí)行文件或 .NET 組件庫,該組件庫可以用與 ActiveX 控件 (COM組件 )相同的方式由其他代碼調用。 ● 可以使用指針和直接內存訪問,但 C語言可以在沒有它們的條件下訪問內存。這可以用于文檔說明,對編譯有一定的影響 (例如,把方法標記為只在調試時編