User Tools

Site Tools


blog:fall2015:mp010784: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:mp010784:intro [2015/08/30 00:12] – [Week 1] mp010784blog:fall2015:mp010784:intro [2015/09/05 17:14] (current) mp010784
Line 82: Line 82:
 --Matthew Page 08/26/2014  --Matthew Page 08/26/2014 
  
-======Data Structures====== 
- 
-====Week 1==== 
- 
-I think I'm changing formats from writing stuff every single day to just writing a general synopsis for every week for each class to preserve my sanity.\\ 
- 
-For data structures this week we discussed the general idea of linked lists and looked at our first project (dsi0) which is pertaining to making an array list and having a user driven menu that changes data in the array list.  We also talked about pointers and nodes.\\ 
- 
-"To achieve enlightenment you'll want to draw pictures in each stage." --Matt Haas\\ 
- 
-Pointers have:\\   
-1) a name\\ 
-2) an address\\ 
-3) contents at address\\ 
- 
-%%*%% - means get the contents of what's at address.\\ 
-%%&%% - means give me the address.\\ 
- 
-"Saving the planet, one keystroke at a time." --Matt Haas with ending by Zack Golden.\\ 
- 
-Node code:\\ 
-<code> 
-struct node    //defining struct node 
-{ 
-    signed short int value; 
-    struct node *next; 
-}; 
- 
-typedef struct node Node; 
- 
-Node *tmp;         //does the same thing 
-struct node tmp2;  //does the same thing 
- 
-Node *tmp=NULL;           //setting both pointers tmp and tmp2 to NULL 
-struct node *tmp2=NULL; 
- 
-tmp=(Node*)malloc(sizeof(Node));  //instantiating a node. 
- 
-tmp->next->NULL;  //pointing back to NULL after the node. 
- 
-tmp->value=7;  //setting the value in node to 7. 
- 
-tmp->next=(Node*)malloc(sizeof(Node));    //instantiating 2nd node. 
-tmp->next->next=NULL;  //setting pointer of 2nd node to NULL. 
- 
-tmp2=tmp->next; //pointing tmp2 to the second node. 
- 
-tmp2-value=13;  //setting value in second node to 13.  
- 
-</code> 
- 
- 
- 
- 
-======HPC Experience 1====== 
- 
-======Data Communications====== 
  
blog/fall2015/mp010784/intro.1440893528.txt.gz · Last modified: 2015/08/30 00:12 by mp010784