tailieunhanh - Lecture Practical C++ programming - Chapter 10: The C++ Pre-processor

This chapter contains the greatest number of mixed up programs per page of any chapter. Preprocessor errors are more difficult to detect than normal errors. It’s also easier to make errors that will slip past the compiler. For that reason this chapter contains many broken programs. | Chapter - 10 The C Pre-processor Practical C Programming Copyright 2003 O Reilly and Associates Page 1 The Pre-processor The C Pre-processor is nothing more than a glorified text editor. It has its own syntax and knows nothing about C syntax. Practical C Programming Copyright 2003 O Reilly and Associates Page 2 define statement define SIZE 20 Tells the C pre-processor global change word SIZE to 20 . Note The define statement was widely used in the old C language which didn t have a const declaration . In C most define statements can and should be replaced by const declarations. General form of the defíne statement define Name Substitute-Text Practical C Programming Copyright 2003 O Reilly and Associates Page

crossorigin="anonymous">
Đã 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.