TAILIEUCHUNG - Lecture Programming principles and practice using C++: Chapter 10 - Bjarne Stroustrup

We get data from files, sensors, web connections, etc., which we want to analyze, print, graph, etc. Sometimes, we want to produce such data. In this lecture, we look at C++’s basic mechanisms for reading and writing streams of data. We also discuss an interesting – apparently trivial – problem: how to read an integer. | Chapter 10 Input/Output Streams Bjarne Stroustrup Abstract We get data from files, sensors, web connections, etc., which we want to analyze, print, graph, etc. Sometimes, we want to produce such data. In this lecture, we look at C++’s basic mechanisms for reading and writing streams of data. We also discuss an interesting – apparently trivial – problem: how to read an integer. Stroustrup/Programming/2015 Overview Fundamental I/O concepts Files Opening Reading and writing streams I/O errors Reading a single integer Stroustrup/Programming/2015 Input and Output input device device driver input library our program output library device driver output device data source: data destination: Stroustrup/Programming/2015 The stream model An ostream turns values of various types into character sequences sends those characters somewhere ., console, file, main memory, another computer c (1,234) 123 ostream buffer “somewhere” .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.