User Tools

Site Tools


blog:fall2015:zgolden:intro

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
blog:fall2015:zgolden:intro [2015/09/04 18:14] zgoldenblog:fall2015:zgolden:intro [2015/09/04 18:18] (current) zgolden
Line 3: Line 3:
 Hello my name is Zack Golden, I am in the computer information program. Got one class left being, data structures. I'm a big gamer and also enjoy messing around with computers. Also a big sports guy mainly with football and basketball. Hello my name is Zack Golden, I am in the computer information program. Got one class left being, data structures. I'm a big gamer and also enjoy messing around with computers. Also a big sports guy mainly with football and basketball.
  
-====8/25/2015==== 
-  * Project 
-    * dsi0 due around 9/10 
- 
-====8/27/2015==== 
-<code> 
-struct node//name of struct "node" 
-{ 
-   signed short int value;//holds the value of the node 
-   struct node *next;//points to the next node 
-}; 
- 
-typedef struct node Node;//allows you to use Node rather then typing out struct node every time 
- 
-Node *tmp = NULL;//creates first node using typedef 
-struct node *tmp2 = NULL;//creates 2nd node using struct 
- 
-tmp = (Node*)malloc(sizeof(Node));//gets memory for the first node 
-tmp->next=NULL;//set the next pointer of the node struct to null 
- 
-tmp->next=(Node*)malloc(sizeof(Node));//creates 2nd node 
-tmp->next->next= NULL;//sets 2nd node next to NULL 
-tmp2 = tmp->next;//tmp2 is the node after tmp 
- 
-tmp->value= 7;// sets first node value to 7 
-tmp2->value= 13;//sets 2nd node value to 13 
-</code> 
- 
- 
-====9/1/2015==== 
-  * Absent 
- 
- 
-====9/3/2015==== 
-  * __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,2);//sets tmp pointer to index two in the list struct 
-    * getpos 
-      * //gets position of pointer// 
-      * Example: x = getpos(myList, tmp);//gets the position of the pointer tmp 
- 
-<code> 
-struct list{ 
-   struct list *start;//pointer that is positioned to the start of the list 
-   struct *end;//pointer that is positioned at the end of the list 
-   int qty;//shows the quantity of nodes in a list 
-}; 
-</code>   
blog/fall2015/zgolden/intro.1441390493.txt.gz · Last modified: 2015/09/04 18:14 by zgolden