Báo cáo tài liệu vi phạm
Giới thiệu
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
THỊ TRƯỜNG NGÀNH HÀNG
NÔNG NGHIỆP, THỰC PHẨM
Gạo
Rau hoa quả
Nông sản khác
Sữa và sản phẩm
Thịt và sản phẩm
Dầu thực vật
Thủy sản
Thức ăn chăn nuôi, vật tư nông nghiệp
CÔNG NGHIỆP
Dệt may
Dược phẩm, Thiết bị y tế
Máy móc, thiết bị, phụ tùng
Nhựa - Hóa chất
Phân bón
Sản phẩm gỗ, Hàng thủ công mỹ nghệ
Sắt, thép
Ô tô và linh kiện
Xăng dầu
DỊCH VỤ
Logistics
Tài chính-Ngân hàng
NGHIÊN CỨU THỊ TRƯỜNG
Hoa Kỳ
Nhật Bản
Trung Quốc
Hàn Quốc
Châu Âu
ASEAN
BẢN TIN
Bản tin Thị trường hàng ngày
Bản tin Thị trường và dự báo tháng
Bản tin Thị trường giá cả vật tư
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
NGÀNH HÀNG
NÔNG NGHIỆP, THỰC PHẨM
Gạo
Rau hoa quả
Nông sản khác
Sữa và sản phẩm
Thịt và sản phẩm
Dầu thực vật
Thủy sản
Thức ăn chăn nuôi, vật tư nông nghiệp
CÔNG NGHIỆP
Dệt may
Dược phẩm, Thiết bị y tế
Máy móc, thiết bị, phụ tùng
Nhựa - Hóa chất
Phân bón
Sản phẩm gỗ, Hàng thủ công mỹ nghệ
Sắt, thép
Ô tô và linh kiện
Xăng dầu
DỊCH VỤ
Logistics
Tài chính-Ngân hàng
NGHIÊN CỨU THỊ TRƯỜNG
Hoa Kỳ
Nhật Bản
Trung Quốc
Hàn Quốc
Châu Âu
ASEAN
BẢN TIN
Bản tin Thị trường hàng ngày
Bản tin Thị trường và dự báo tháng
Bản tin Thị trường giá cả vật tư
Thông tin
Tài liệu Xanh là gì
Điều khoản sử dụng
Chính sách bảo mật
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Declaring Increment and Decrement Operators
Đang chuẩn bị liên kết để tải về tài liệu:
Declaring Increment and Decrement Operators
Thùy Oanh
53
3
pdf
Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG
Tải xuống
Kê khai và sụt lần Increment sử dụng C # cho phép bạn khai báo phiên bản của riêng bạn của thặng dư (+ +) và sụt lần (-) khai thác. Các quy tắc thông thường áp dụng khi tuyên bố các nhà điều hành, họ phải được công chúng, họ phải được tĩnh, và chúng phải được nguyên phân. | Declaring Increment and Decrement Operators C allows you to declare your own version of the increment and decrement operators. The usual rules apply when declaring these operators they must be public they must be static and they must be unary. Here is the increment operator for the Hour struct struct Hour . public static Hour operator Hour arg arg.value return arg . private int value The increment and decrement operators are unique in that they can be used in prefix and postfix forms. C cleverly uses the same single operator for both the prefix and postfix versions. The result of a postfix expression is the value of the operand before the expression takes place. In other words the compiler effectively converts this Hour now new Hour 9 Hour postfix now Into this Hour now new Hour 9 Hour postfix now now Hour.operator now pseudocode not valid C The result of a prefix expression is the return value of the operator. The C compiler effectively converts this Hour now new Hour 9 Hour prefix now Into this Hour now new Hour 9 now Hour.operator now pseudocode not valid C Hour prefix now This equivalence means that the return type of the increment and decrement operators must be the same as the parameter type. Operators in Structs and Classes It is important to realize that the implementation of the increment operator in the Hour struct works only because Hour is a struct. If you change Hour into a class but leave the implementation of its increment operator unchanged you will find that the postfix translation won t give the correct answer. If you remember that a class is a reference type and revisit the compiler translations explained previously you can see why this occurs Hour now new Hour 9 Hour postfix now now Hour.operator now pseudocode not valid C If Hour is a class the assignment statement postfix now makes the variable postfix refer to the same object as now. Updating now automatically updates postfix If Hour is a struct the assignment statement makes a copy of now in
TÀI LIỆU LIÊN QUAN
Declaring Increment and Decrement Operators
Declaring Increment On Web Sever
Đã 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.