This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
blog:fall2015:hju:journal [2015/09/07 02:57] – hju | blog:fall2015:hju:journal [2015/12/01 00:17] (current) – hju | ||
---|---|---|---|
Line 19: | Line 19: | ||
I wasn't sure about the project at first , however, I think I finished project well. I am so happy with that because I forgot C a lot at first. | I wasn't sure about the project at first , however, I think I finished project well. I am so happy with that because I forgot C a lot at first. | ||
+ | ====September 15, 2015==== | ||
+ | |||
+ | Today, I got some idea of how to finish the project sln0. I still don't sure about the difference of code between insert and append, however, I understand the concepts of them. Insert is something that goes before of the specific node and append goes after the node. I had hard time understanding what ' | ||
+ | |||
+ | ====September 21, 2015==== | ||
+ | |||
+ | I finally get to write " | ||
+ | |||
+ | ====September 22, 2015==== | ||
+ | |||
+ | The node-app-display and node-app-arrtolist help me to see how the code can be shorter by using mknode. Also, I used while loop and if statement for cpnode. If I see more than one node, I copy the next node, too. Matt said it is the next project, however, I think I did that in this project. :) I am very glad that I am actually understanding " | ||
+ | |||
+ | ====September 30, 2015==== | ||
+ | |||
+ | I almost submit late for sll0. I had so much hard time struggling this project. I spent all of the weekend for this and I finally submit it 3 hours before the deadline. I am really happy that I am not late. So the project was all about the list and making various functions with it. All of the project was hard for me. I struggled displayf for a long time and after figuring it out, pos.c was much of time consuming (not so hard). However, insert.c was the worst. I had same error everytime even if I fixed it a lot! So the problem came out to be that I did not consider myList -> last points to the null. So if I say | ||
+ | |||
+ | newNode -> after = myList -> last; | ||
+ | |||
+ | newNode -> after points to NULL, too. For the solution, I made new node that could be temporary myList -> last. After I insert the node, I removed it. I think really hard for this. Once more, I recognize what pointer is.. hmm.... | ||
+ | |||
+ | ====October 6, 2015==== | ||
+ | |||
+ | Wow! I finished sll1! This is unbelievable! I literally spent a whole week for this project. I had hard time making libraries for the functions in sll1. So many segmentation faults! I couldn' | ||
+ | |||
+ | ====October 12, 2015==== | ||
+ | |||
+ | I finished sll2 today! I wish this project would been last week's project. It was much easier than last one. Less time consuming. I think it is because now I really got the concept. For obtain, the basic shape of the code was similar. I had to check 5 things: NULL, empty, one node, first node, last node and other cases. For rmlist, it was very similar to the rmnode. For clearlist, I removed nodes one at a time until the list is empty. Next was swapnode. For this function, I used a lot of obtain, append and insert. The real thing was sortlist. :-o In order to complete sortlist, I had to use arrays. I was really confused between int and char. Because the char was used for searchlist. I didn't figured out why char can be int, too. | ||
+ | |||
+ | ====October 20, 2015==== | ||
+ | |||
+ | Awesome! I finished all of the projects that is due 28th. I was stuck on last unit test for lobtain not knowing what the problem was. Today, I figured it out. It was the [place] part in insert. I thought considering 5things would work perfectly at any circumstances. However, I considered null group, null newList. But, not null place. If place is not given, all I have to do is return as it is. This part was little bit tricky, because, I didn't have any problem with obtain function (obtaining node). I am not actually used to the gdb. But today, I saw magic running gdb that provides a lot of information. sll3 and sll4 wasn't big deal. Actually, better than sll2. So I am looking for the new project! doubly linked list! I heard that it has previous pointer in there. I think that makes my life so much easier. Because I finished all of my projects, I will walk away from the lab46 for a while. ~_~ and eventually I will come back. | ||
+ | |||
+ | ====October 28, 2015==== | ||
+ | So now we are learning about doubly linked list! The good thing about doubly linked list is that now I can use the pointer that points to the before node(prior). Also, the new thing is that now the return type has changed. Now I have to return the status which is expressed as hex value. We did this kind of return when we did ' | ||
+ | |||
+ | ====October 29, 2015==== | ||
+ | I got some error when I try to assign value to the newnode. I thought I just had to do | ||
+ | |||
+ | *(newNode) -> VALUE = info; | ||
+ | |||
+ | However, it gave me error. I should find out today. Other than that, I think this is fine start. | ||
+ | Since I didn't finish the mknode, I wasn't able to start cpnode. Of course I am done with rmnode. | ||
+ | |||
+ | ====November 5, 2015==== | ||
+ | ugh... I forgot to do make submit for dln0. So I did it today. However, I was pressing upward arrow key for doing my project, I accidently submitted dll1. Oh, well.. I don't care. I will submit once again whenever I finish my project. So far, I finished rmlist, emptylist and obtain. Not so hard. It was similar to what we did with singly linked node. Just adding prior pointer. | ||
+ | |||
+ | ====November 11, 2015==== | ||
+ | I finally finished my dll1. I was really scared of swapnode and sortnode. However, I think I did well. Actually, I had problem with compare. I wasn't able to assign values to the difference. However, the problem was solved. I forgot to put pointer there. Other than that, I had swapnode issue. I didn't think of the case where I have to swap the first and the second node in the list. Because of the error, I couldn' | ||
+ | |||
+ | ====November 18, 2015==== | ||
+ | It was matter of pointers!! @_@ I had hard time figuring out the pointers that are all over the place. Returning status code wasn't hard. Dealing with double pointers was harder. So I completed the dls0. Stacks are fun and easy. It is because there are only top pointer and size. I didn't know that I had to make things up for the cpstack and pop function. I actually figured out by myself by making one more if statement. | ||
+ | |||
+ | else if( (*node) == NULL ) | ||
+ | |||
+ | By adding this line into the code, I recognized that all successful cases fell in to this if statement. Smart way to check it. :) Another part that made trouble was removing the thing that I made. Because I didn't recognize it earlier, I lost all my bonus points.. T_T... But not a big deal, I will shoot for it during the break. | ||
+ | |||
+ | ====November 30, 2015==== | ||
+ | |||
+ | I finished dlq0. It wasn't hard because it was similar to the last project. Queue was just time consuming project. Now I really got the concept of the pointer, address and so on. I can't wait for the last project eoce! |