HW1_linked_list.pdf - COSC 2320 Data Structures Homework 1...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
COSC 2320: Data Structures Homework 1: Editor with Doubly Linked Lists Deadline: Sept. 23, 2014 1. INTRODUCTION You will write a C++ program that will implement basic functionality of an editor. Since creating an interactive editor would be too time consuming, you will program a command-line editor which does only insertion and deletion of words. This editor is similar to early editors and UNIX utilities. You must use doubly linked lists to store a list of words; you cannot use arrays. Words will be inserted and deleted with dynamic memory manipulation via linked lists. The first major requirement is that your program produces correct results. The second requirement is that it manages memory efficiently. You must develop your own C++ classes to solve the homework. Therefore, you are not allowed to use the list implementation in the STL Library . 2. INPUT & OUTPUT The input of the program is a text file with multiple commands to be executed by the editor, one command per line. The commands are defined as follows: Read [ file name ] Read the specified file from disk and insert each word in the file into a doubly linked list. The file specified in this command will be a text file, with an unbounded number of different words, separated by spaces, commas or periods. The input file can have several
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern