Tuesday 28 February 2012

edit function (CDailog.cpp) is done!

The edit function was not that complicated since it has a similar structure to the edit in console.cpp, and also the instructions were pretty clear and helpful.

However, I could not test it because some methods are needed form CLable.cpp; which apparently the two team members that were in charge of it dropped the course(as me and Stephanie saw it coming)! So now we (the team) have to worry about another class...

Saturday 25 February 2012

OOP344 lecture Feb 23 2012


In this lecture R0.2 is farther explained!! 

Please comment below! 





Intro:





CFrame:








CField and Void pointer:


part 1:


part 2:

part 3:







CLable:

part1:



part2:





CDialog:


part1:



part2:




part3:

part4:


Linked Lists (Queue) continued...: 

part1:

 
part2:


part3:



part4:


Friday 17 February 2012

OOP344 lecture Feb 016 2012

This time you can see the code very well!!! But for some reason when converting some of the videos the quality is not that good.....
It's an important lecture, so pay attention!
Please comment!!!



string array:


part1



part2


part3

part 4



part5



part6




From string array to Linked list Intro:


part1:

Linked list:


part1



Linked list to Queue:

part1





Queue:

part1


part2


Saturday 11 February 2012

OOP344 lecture Feb 09 2012

This time I got better seats so now you can see the code...somewhat...
I guess I have to be at the first row even though I have that!!

Review from Monday and beyond...:


part 1:



part 2:



part 3:




part 4:





part 5:



part 6:



part 7:



part 8:



part 9:


part 10:


part 11:


Thursday 9 February 2012

concatenate command line program

Here is my approach for creating a concatenation command line program.
Don't try on matrix...
It's not perfect because I'm too busy to work on it any longer!!
If you have any suggestion please leave a comment!!!!!




#include <iostream>


using namespace std;

bool Files(int argc,char* argv[]);


int main(int argc, char* argv[])
{

bool done;

done= true;

  (argc < 3)
 &&
cout<<"Usage:  Concat  Destination.txt File1.txt (File2.txt File3.txt ...)"<<endl
 &&
cout<<"       make sure you have File1.txt and File2.txt exists!!!"<<endl
 &&
 (done = !done);


  (!!done)
 &&
    Files(argc,argv)
&&
cout<<"Concatenation successful!!"<<endl;

//this is just so the program won't exit before we see the "cout"s..
  getchar();

  return 0;
}


bool Files(int argc,char* argv[])
{

  FILE* destination ;
  FILE* files;
  int i;
  int temp;


  //first argument is the destination file always
     destination = fopen(argv[1], "a");

for(i= 2; i< argc; i++)
{
 files = fopen(argv[i], "r");
 while((temp = fgetc(files)) != EOF)
 {
fputc(temp, destination );
 }
 fclose(files);
}

fclose(destination);

return true;
}

Monday 6 February 2012

OOP344 lecture Feb 06 2012

This Time I did use a better camera but I got really bad seats since I was a little late..
So you cannot really see the code but you can follow along(the code is on SVN).
Please leave a comment!!


Intro (FUNNY!) :


References:

part 1:

    
part 2:

                  
part 3:





Creating int array and allocation:


part 1:




part 2:



part3:




part4:


part5:


part6:




TO DO:

Thursday 2 February 2012

OOP344 lecture Feb 02 2012

I know the video is not that clear (I'll be using a different camera next time) it keep auto-focusing by itself and there is no way to stop that. So I had to use my hand to fix it while recording...

Even though you can't see the code (I'll get better seats next time) you can still follow along (the codes are on SVN...)


RECURSION:


   part 1:


part 2:



part 3:




  



  Operators in C: 

part 1:






part 2:






part 3:









Virtual:


part1:



part 2:




part 3:





pointers and more..:

part 1:





part 2:




part 3:


Wednesday 1 February 2012

Don's answer to his question about test 4.17



you are getting that error I think because you are exiting before correcting your offset:

int length = strlen(str);

if(strOffset){
  int    locOff = *strOffset;
 if(locOff  >  length)
{

*strOffset  = length;

if( IsTextEditor)
{
return 0;
}

}