Difference between revisions of "Weekly Schedule 20121 - OOP344"

From CDOT Wiki
Jump to: navigation, search
(Help)
(Help)
Line 186: Line 186:
 
*'''Fardad,'''
 
*'''Fardad,'''
 
*: data3 -> data2 -> data1 -> NULL
 
*: data3 -> data2 -> data1 -> NULL
*:I was asking the same question in today's class... just want to get clear about adding a Node. On your example, you wrote, that removing a Node is happenning from _head of the link list... which is from data3 on my above example... right, then why we are adding a Node from tail (ie. between data1 and NULL) of the link list...?? if the adding on tail is right then, why we are removing from head???... both process supposed to happen from same place... right? If we get this type of question on test or exam, it will definetly cofuse me. Please correct me if I understand wrongly.  Thanks! If the adding is happenning on head, here is my code...--[[User:Tvirutthasalam|Tvirutthasalam]] 19:08, 23 February 2012 (EST)
+
*:I was asking the same question in today's class... just want to get clear about adding a Node. On your example, you wrote, that removing a Node is happenning from _head of the link list... which is after data3 on my above example... right, then why we are adding a Node from tail (ie. between data1 and NULL) of the linked list...?? if the adding on tail is right then, why we are removing from other side i mean.. head??? both process suppose to happen from same place... right? If we get this type of question on test or exam, it will definetly cofuse me. Please correct me if I understand wrongly.  Thanks! If the adding is happenning on head, here is my code...--[[User:Tvirutthasalam|Tvirutthasalam]] 19:08, 23 February 2012 (EST)
 
<pre>
 
<pre>
 
void Queue::add(int val){
 
void Queue::add(int val){

Revision as of 20:13, 23 February 2012


OOP344 | Weekly Schedule | Student List | Teams | Project | Student Resources

OOP344 -- Weekly Schedule 2012/1 (Winter Semester)

  • Watch the lecture, scroll bellow to Resources!


Week 1 - Jan 8

This Week

  • Introduction to Open Source development.
  • Collaboration Tools:
    • Wiki
    • Blog
    • IRC
    • Code Repository


To Do

Form a team of 3 to 5 students and select a name for your team. (members can be from both sections of oop344)

  1. Create an account on this wiki, (please use your seneca email id for your wiki id)
  2. Join the IRC by registering your nickname on freenode server and joining the #seneca-oop344 channel for 344 related dialog
    Additional channels of interest: #seneca to interact with all Seneca students participating in opensource projects, and #seneca-social for Social (off-topic) dialog.
  3. Create a blog (if you don't already have one)
  4. Add your name to the OOP344 Student List
  5. Download SVN and check out the OOP344 repo(svn://zenit.senecac.on.ca/oop344) to get the notes done in class (userid: "oop344", no password)
  6. Create your team page using provided template

Resources

Week 2 - Jan 15

This Week

  • namespaces
  • extern
  • define
    Macros
  • project review

To Do

  • Form your teams and send me ONE email per team containing team member complete Seneca info.
    Update the Team page.
  • If you are not able to join a team send me an email to place your myself.

Resources

  • Each team should have their own page like this team. Click here for more info.

Week 3 - Jan 22

This Week

  • pointers review, pointer arithmetic
  • project review

To Do

  • Finalize your teams

Resources

  • Some notes from the Thursday class can be found here (apetrus)
  • 26-Jan-2012.mp4 Also if you are interested audio lecture in one file.mp4 (55 mb)
  • One important thing to know here --Gdanish 22:36, 9 February 2012 (EST)

Week 4 - Jan 30

This Week

  • Statics
    variables
    attributes (member variables
    methods
  • recursion
  • Operators in C
  • Virtual
    pure virtual methods
    abstract base classes
  • Pointers to Functions

To Do

  • Review your teams

Resources

  • If you missed this class (Thursday) or you couldn't follow along because fardad speaks too fast. whatever the reason you can watch the lecture here!
  • I have also posted some class notes here and here (apetrus)
  • 02-Feb-2012.mp4 Also if you are interested audio lecture in one file.mp4 (85 mb)

Week 5 - Feb 05

This Week

  • References
    review
    Returning
  • Dynamic Memory Allocation (DMA)
    review
    Creating a Smart Integer Array
  • Variable Argument list
  • Command line arguments
  • Pointers to Functions (continued)
  • SVN account submissions

To Do

int validMonth(int mon, char* errmes){
  int res = 0;
  if(mon > 0 && mon <=12){
    res  = 1;
  }
  else{
    strcpy(errmes, "Invalid month (1<=month<=12)");
  }
  return res;
}

write the above function in one line:

int validMonth(int mon, char* errmes){
  return yada yada;
}

yada yada can have only operators and one function call (no ?: operator allowed)


Help

  • Can anyone post the audio/video version of today's class. Can't remember the homework question that was given near end of class.--Tvirutthasalam 21:50, 6 February 2012 (EST)
  • You can find that at the the end of my page below in Resources
    • Yea right... I forgot about you... again.. thank u for da wonderful job. It's always help me..!!--Tvirutthasalam 00:08, 7 February 2012 (EST)
    • No problems! Please comment!!

Resources

  • If you missed this class (Monday) or you couldn't follow along because fardad speaks too fast. whatever the reason you can watch the lecture here!
  • 06-Feb-2012.mp4 (Monday) Also if you are interested audio lecture in one file.mp4 (70 mb)
  • If you missed this class (Thursday) or you couldn't follow along because fardad speaks too fast. whatever the reason you can watch the lecture here!
  • 09-Feb-2012.mp4 (Thursday) Also if you are interested audio lecture in one file.mp4 ( mb)

Week 6 - Feb 12

This Week

  • Monday Class will be in T2107
  • Dynamic Arrays/Strings Continued
  • Overload Casts
  • Linked Lists Intro

To Do

Help

  • Is anyone aware if the mid term test is this Thursday or the Monday after reading week?

Resources

Week 7 - Feb 19

This Week

  • void pointers
  • Project
  • Linked Lists

To Do

Help

  • Fardad,
    data3 -> data2 -> data1 -> NULL
    I was asking the same question in today's class... just want to get clear about adding a Node. On your example, you wrote, that removing a Node is happenning from _head of the link list... which is after data3 on my above example... right, then why we are adding a Node from tail (ie. between data1 and NULL) of the linked list...?? if the adding on tail is right then, why we are removing from other side i mean.. head??? both process suppose to happen from same place... right? If we get this type of question on test or exam, it will definetly cofuse me. Please correct me if I understand wrongly. Thanks! If the adding is happenning on head, here is my code...--Tvirutthasalam 19:08, 23 February 2012 (EST)
void Queue::add(int val){
  _head = new Node(val, _head);
}

Resources