User Tools

Site Tools


notes:data:fall2022:projects:sll2

This is an old revision of the document!


BACKGROUND

SPECIFICATIONS

We have 5 tasks to do for full credit. These are:

  • clear()
  • obtain()
  • rm()
  • sort()
  • swap()

You also have an extra task, for extra credit, inside app/list/ of your sll2 base directory. The extra credit task is to build a linked list based on input from the user. You will also determine whether or not this linked list is a palindrome linked list or not. In case you don't know what a palindrome list is, here is an example. A palindrome list is a list that would look the same if you reversed it. For example, if you have a list, 1 2 3 2 1, that would be a palindrome, because if you display it backwards or forwards, it would display the same thing.

Another thing to note is that the sll0 project files can only compile with version 9 of gcc. If you are not on lab46 and the project fails to build the library or unit tests, this may be because you are using a newer or older version of gcc.

You can use an older version of gcc off of lab46 by using the following commands (assuming you are using a Raspberry Pi with it's default OS) in this link: https://gist.github.com/sol-prog/95e4e7e3674ac819179acf33172de8a9

*Our task is to ask questions on Discord or in class and document our findings on this wiki page collaboratively, regarding the functionality of this project.

*For anybody interested in editing the wiki page, here is the dokuwiki user guide: https://www.dokuwiki.org/wiki:syntax#basic_text_formatting -Ash

PROGRAM

Recommended Order to make functions: 1.Obtain() 2. clearlist() 3. rmlist() 4. swap() 5. sort()

OUTPUT SPECIFICATIONS

UNIT TESTS

notes/data/fall2022/projects/sll2.1664466957.txt.gz · Last modified: 2022/09/29 15:55 by zswartwo