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
Giới thiệu
Đăng ký
Đăng nhập
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
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Lecture Programming principles and practice using C++: Chapter 11 - Bjarne Stroustrup
Đang chuẩn bị liên kết để tải về tài liệu:
Lecture Programming principles and practice using C++: Chapter 11 - Bjarne Stroustrup
Giang Thiên
71
28
ppt
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
In this chapter, we concentrate on how to adapt the general iostreams framework presented in Chapter 10 to specific needs and tastes. A number of ways are presented in which we can tailor input and output to our needs. In this chapter, you learned to: Input and output, numeric output, file modes, string streams, line-oriented input. | Chapter 11 Customizing I/O Bjarne Stroustrup www.stroustrup.com/Programming Overview Input and output Numeric output Integer Floating point File modes Binary I/O Positioning String streams Line-oriented input Character input Character classification Stroustrup/Programming/2015 Kinds of I/O Individual values See Chapters 4, 10 Streams See Chapters 10-11 Graphics and GUI See Chapters 12-16 Text Type driven, formatted Line oriented Individual characters Numeric Integer Floating point User-defined types Stroustrup/Programming/2015 Observation As programmers we prefer regularity and simplicity But, our job is to meet people’s expectations People are very fussy/particular/picky about the way their output looks They often have good reasons to be Convention/tradition rules What does 110 mean? What does 123,456 mean? What does (123) mean? The world (of output formats) is weirder than you could possibly imagine Stroustrup/Programming/2015 Output formats Integer . | Chapter 11 Customizing I/O Bjarne Stroustrup www.stroustrup.com/Programming Overview Input and output Numeric output Integer Floating point File modes Binary I/O Positioning String streams Line-oriented input Character input Character classification Stroustrup/Programming/2015 Kinds of I/O Individual values See Chapters 4, 10 Streams See Chapters 10-11 Graphics and GUI See Chapters 12-16 Text Type driven, formatted Line oriented Individual characters Numeric Integer Floating point User-defined types Stroustrup/Programming/2015 Observation As programmers we prefer regularity and simplicity But, our job is to meet people’s expectations People are very fussy/particular/picky about the way their output looks They often have good reasons to be Convention/tradition rules What does 110 mean? What does 123,456 mean? What does (123) mean? The world (of output formats) is weirder than you could possibly imagine Stroustrup/Programming/2015 Output formats Integer values 1234 (decimal) 2322 (octal) 4d2 (hexadecimal) Floating point values 1234.57 (general) 1.2345678e+03 (scientific) 1234.567890 (fixed) Precision (for floating-point values) 1234.57 (precision 6) 1234.6 (precision 5) Fields |12| (default for | followed by 12 followed by |) | 12| (12 in a field of 4 characters) Stroustrup/Programming/2015 Numerical Base Output You can change “base” Base 10 == decimal; digits: 0 1 2 3 4 5 6 7 8 9 Base 8 == octal; digits: 0 1 2 3 4 5 6 7 Base 16 == hexadecimal; digits: 0 1 2 3 4 5 6 7 8 9 a b c d e f // simple test: cout Stroustrup/Programming/2015 “Sticky” Manipulators You can change “base” Base 10 == decimal; digits: 0 1 2 3 4 5 6 7 8 9 Base 8 == octal; digits: 0 1 2 3 4 5 6 7 Base 16 == hexadecimal; digits: 0 1 2
TÀI LIỆU LIÊN QUAN
Lecture Programming principles and practice using C++: Chapter 27 - Bjarne Stroustrup
Lecture Programming principles and practice using C++: Chapter 25 - Bjarne Stroustrup
Lecture Programming principles and practice using C++: Chapter 1, 2 - Bjarne Stroustrup
Lecture Programming principles and practice using C++: Chapter 7 - Bjarne Stroustrup
Lecture Programming principles and practice using C++: Chapter 8 - Bjarne Stroustrup
Lecture Programming principles and practice using C++: Chapter 9 - Bjarne Stroustrup
Lecture Programming principles and practice using C++: Chapter 10 - Bjarne Stroustrup
Lecture Programming principles and practice using C++: Chapter 11 - Bjarne Stroustrup
Lecture Programming principles and practice using C++: Chapter 12 - Bjarne Stroustrup
Lecture Programming principles and practice using C++: Chapter 13 - Bjarne Stroustrup
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.