This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:data:fall2022:projects:sll2 [2022/10/05 17:59] – [SPECIFICATIONS] gsuber | notes:data:fall2022:projects:sll2 [2022/10/05 18:05] (current) – [Basic GDB] gsuber | ||
---|---|---|---|
Line 31: | Line 31: | ||
- | 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. | + | You also have an extra task, for extra credit |
The palindrome should accept values either from the CLI, stdin, or both. Be able to determine if the created list is a palindrome. Reverse the list(hint: use sortlist()). Finally, display the list. | The palindrome should accept values either from the CLI, stdin, or both. Be able to determine if the created list is a palindrome. Reverse the list(hint: use sortlist()). Finally, display the list. | ||
Line 58: | Line 58: | ||
=====Basic GDB===== | =====Basic GDB===== | ||
+ | GDB is a very useful tool, especially if you are running into segmentation faults on any unit test. GDB allows you to set breakpoints, | ||
To launch gdb (obtain used as example): | To launch gdb (obtain used as example): |