Beginning Visual C++® 2005 (P3)

Tham khảo tài liệu 'beginning visual c++® 2005 (p3)', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Data Variables and Calculations Note that the two forms of include directive in the previous code fragment cause the compiler to search for the file in different ways. When you specify the file to be included between angled brackets you are indicating to the compiler that it should search for the file along the path specified by the I compiler option and failing that along the path specified by the INCLUDE environment variable. These paths locate the C library files which is why this form is reserved for library headers. The INCLUDE environment variable points to the folder holding the library header and the I option allows an additional directory containing library headers to be specified. When the file name is between double quotes the compiler will search the folder that contains the file in which the include directive appears. If the file is not found it will search in any directories that include the current file. If that fails to find the file it will search the library directories. C CLI Programming C CLI provides a number of extensions and additional capabilities to what I have discussed in this chapter up to now. I ll first summarize these additional capabilities before going into details. The additional C CLI capabilities are All of the ISO ANSI fundamental data types can be used as I have described in a C CLI program but they have some extra properties in certain contexts that I ll come to. C CLI provides its own mechanism for keyboard input and output to the command line in a console program. C CLI introduces the safe_cast operator that ensures that a cast operation results in verifiable code being generated. C CLI provides an alternative enumeration capability that is class-based and offers more flexibility than the ISO ANSI C enum declaration you have seen. You ll learn more about CLR reference class types beginning in Chapter 4 but because I have introduced global variables for native C I ll mention now that variables of CLR reference class types .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
31    99    2    22-06-2024
94    63    2    22-06-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.