This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
blog:fall2015:zgolden:intro [2015/09/04 18:17] – zgolden | blog: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/ | ||
- | * 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 | ||
- | }; | ||
- | </ |