TAILIEUCHUNG - HandBooks Professional Java-C-Scrip-SQL part 161

Tham khảo tài liệu 'handbooks professional java-c-scrip-sql part 161', 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ả | pass through the file because until then we do not know the total sizes of all records with a given key But we are getting a little ahead of ourselves here. Before we can calculate the total size of all the records for a given key character we have to read all the records in the file so let s continue by looking at the loop that does that. This endless loop starts by reading a line from the input file and checking whether it was successful. If the status of the input file indicates that the read did not work then we break out of the loop. Otherwise we increment the total number of keys read for statistical purposes calculate the length of the record and increment the total amount of data read also for statistical purposes . Next we determine whether the record is long enough for us to extract the character of the key that we need if it is we do so and otherwise we treat as though it were 0 so that such a record will sort to the beginning of the Once we have found or substituted for the character on which we are sorting we add the length of the line plus one for the new-line character that the getline function discards to the displacement for that character. Then we continue with the next iteration of the loop. Once we get to the end of the input file we close it. Then we compute the total displacement values for each character by adding the total displacement value for the previous character to the displacement value for the previous character. At this point having read all of the data from the input file we can display the statistics on the total number of keys and total amount of data in the file if this is the first pass. This is also the point where we display the time taken to do the counting pass. Now we re ready for the second distribution pass for this character position. This is another endless loop very similar to the previous one. As before we read a line from the input file and break out of the loop if the read fails. Next we .

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.