This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
blog:fall2015:zgolden:journal [2015/08/30 16:30] – created zgolden | blog:fall2015:zgolden:journal [2015/10/07 17:37] (current) – zgolden | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====8/ | ||
+ | * Project | ||
+ | * dsi0 due around 9/10 | ||
+ | ====8/ | ||
+ | < | ||
+ | struct node//name of struct " | ||
+ | { | ||
+ | | ||
+ | | ||
+ | }; | ||
+ | |||
+ | typedef struct node Node;// | ||
+ | |||
+ | Node *tmp = NULL;// | ||
+ | struct node *tmp2 = NULL;// | ||
+ | |||
+ | tmp = (Node*)malloc(sizeof(Node));// | ||
+ | tmp-> | ||
+ | |||
+ | tmp-> | ||
+ | tmp-> | ||
+ | tmp2 = tmp-> | ||
+ | |||
+ | tmp-> | ||
+ | tmp2-> | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====9/ | ||
+ | * Absent | ||
+ | |||
+ | |||
+ | ====9/ | ||
+ | * __Node functions__ | ||
+ | * create | ||
+ | * //makes a node// | ||
+ | * copy | ||
+ | * //copies the data in a node// | ||
+ | * remove | ||
+ | * //deleted a node// | ||
+ | * __List function__ | ||
+ | * create | ||
+ | * //creates a list of nodes whether empty or not// | ||
+ | * copy | ||
+ | * //copies a list to another to alter data// | ||
+ | * clear | ||
+ | * //clears the data in a node// | ||
+ | * insert | ||
+ | * //insert the node before the selected node// | ||
+ | * append | ||
+ | * //adds the node after the selected node// | ||
+ | * obtain | ||
+ | * //gets a node whether to move it or get ready to clear it// | ||
+ | * setpos | ||
+ | * //sets position of pointer// | ||
+ | * Example: tmp = setpos(myList, | ||
+ | * getpos | ||
+ | * //gets position of pointer// | ||
+ | * Example: x = getpos(myList, | ||
+ | |||
+ | |||
+ | < | ||
+ | struct list{ | ||
+ | | ||
+ | | ||
+ | int qty;//shows the quantity of nodes in a list | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====9/ | ||
+ | * gcc -g filename.c -o filename | ||
+ | |||
+ | |||
+ | ====9/ | ||
+ | * __Compile__ | ||
+ | * gcc filename.c -o filename | ||
+ | * gcc -o filename filename.c | ||
+ | * gcc -o filename filename.c -g | ||
+ | * gdb ./filename to run file after compile using the debugger | ||
+ | * __Debugger tools__ | ||
+ | * backtrace: //allows you to see previous steps that got you to where you are// | ||
+ | * list " | ||
+ | * break point: //tell debugger to stop at that point and stop running// | ||
+ | * print: //prints out the value of variable you pass// | ||
+ | * step: //runs one line then stops but follow functions// | ||
+ | * next: //same as step but skips over functions// | ||
+ | * continue: //goes until next breakpoint// | ||
+ | * display: //set variable displays to show values every time something display// | ||
+ | * watch: //stops execution of your program whenever the value of an expression changes// | ||
+ | * set var: //set variable to a specified value// | ||
+ | |||
+ | |||
+ | ====9/ | ||
+ | * Reviewed and talked about the different ways we could of done sln0 | ||
+ | * Advice: | ||
+ | * think of all the possibilities before you start writing code | ||
+ | * Don't be trapped by tradition thinking methods | ||
+ | * Example in sln0: start loops for the end and move index from there | ||
+ | |||
+ | |||
+ | ====9/ | ||
+ | * Run a test in sln1 or bin | ||
+ | * run in the sln1 or bin directory | ||
+ | * Use make to compile but from sln1 directory | ||
+ | * Verify test: is just for a pass or fail | ||
+ | * Unit Test: shows the answer and what you have | ||
+ | * Make check: runs all verify tests to see how much tests you pass or fail | ||
+ | |||
+ | * sln1: | ||
+ | * mknode, conode, rmnode | ||
+ | * node-app-arrtolist | ||
+ | * node-app-display | ||
+ | * node-app-display2 | ||
+ | |||
+ | |||
+ | ====9/ | ||
+ | ====9/ | ||
+ | * Went on a little bit of a hiatus due to work and person circumstances | ||
+ | * sll0 due 9/30 at midnight | ||
+ | * requires to write functions such as mklist(), displayf(), getpos(), setpos(), and insert() | ||
+ | |||
+ | |||
+ | ====9/ | ||
+ | * Status data: used to see grades and progress | ||
+ | * Status data detail: goes into further details on grades and projects | ||
+ | * Reviewed sln1 to see possible improvements | ||
+ | * s110 due Wednesday by midnight | ||
+ | |||
+ | ====10/ | ||
+ | * Talked a little about the project then was given the last 40-30 mins to work on project | ||
+ | |||
+ | ====10/ | ||
+ | * absent | ||
+ | |||
+ | ====10/ | ||
+ | * |