TAILIEUCHUNG - A Laboratory Course in C++Data Structures phần 2

Yêu cầu: Danh sách không có sản phẩm nào. Kết quả: Nếu con trỏ không phải là lúc kết thúc của một danh sách, sau đó di chuyển con trỏ đến điểm tiếp theo trong danh sách và trả về true. Nếu không, trả về false. bool gotoPrior () | 26 Laboratory 2 bool isFull const Requirements None Results Returns true if a list is full. Otherwise returns false. void gotoBeginning Requirements List is not empty. Results Moves the cursor to the point at the beginning of the list. void gotoEnd Requirements List is not empty. Results Moves the cursor to the point at the end of the list. bool gotoNext Requirements List is not empty. Results If the cursor is not at the end of a list then moves the cursor to the next point in the list and returns true. Otherwise returns false. bool gotoPrior Requirements List is not empty. Results If the cursor is not at the beginning of a list then moves the cursor to the preceding point in the list and returns true. Otherwise returns false. Point getCursor const Requirements List is not empty. Results Returns a copy of the point marked by the cursor. Point List ADT 27 void showStructure const Requirements None Results Outputs the points in a list. If the list is empty outputs Empty list . Note that this operation is intended for testing debugging purposes .

TỪ KHÓA LIÊN QUAN
Đã 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.