Thursday, December 31, 2009

OOP344 assignment 2 got help from other team

I checked other teams' wiki and found a lot of teams have already finished this assignment.
So I ask other team members who were doing the same part IO_Edit and IO_Vedit for help.
A lot of people replied me and I got a lot of help.
Here, I want to thank Ausley Lettroy Johnson, Anton Chan, Justin Robertson, Armin Kumarshellahand and Demosthenes Denny Papagiannidis. Especially Demosthenes Denny Papagiannidis.
I will tell this story to my team members who haven't finished the assignment to ask for help from other teams.

Monday, December 28, 2009

OOP344 - find a useful tool for tracking bugs.

Bite team introduced a useful tool for tracking bugs - https://bite.fogbugz.com/.
I checked it. It looks like a forum, but each column has special meaning, like case,title,status,opened by,remaining time,priority.
I can use it for my future projects.
for example: I'm testing a website functions. If I found a bug, I write it in the forum, I just continue writing. After several days, I come back to check if all those bugs are fixed or not. If it is fixed, I close it.
If I'm a programmer, I just login the forum, check each notes, fix them one by one, and leave response there.

OOP344 - use svn at seneca@york

If you don't bring a notebook to school everyday, and you want to use lab computer to do assignment2 or review oop344 notes, you need svn. But lab computers don't have svn.
I find a software called sharpsvn is very useful. No graphic interface, no need to install.
what I do is :
1. download the .7z file from my gmail account draft folder. (I just uploaded it to my web server, you can use 7-zip or winrar to unzip it. This one I used winrar to compress, about 8M. Because my web server don't know .7z files. If you use 7-zip to compress it again, it will be 4M.)
2. unzipped it to c:\temp for an example.
3. run cmd and in dos command type cd c:\temp\sharpsvn
4. type svn export svn://zenit.senecac.on.ca/oop344 c:\temp\oop344
5. type username and password
6. all files will be extract to c:\temp\oop344 folder
I use this way to review oop344 notes at school lab computers. It helped me a lot.
Hope it will help you too.

OOP344 - How do I use SVN at home

After using the svn, I found some difficulties when I update other person's files.
I may have changed something in other person's part. Other person may not agree that. After I did a SVN update, what I have wrote for other person's are gone.
What I'm doing now is:
1. make a copy of the svn folder.
2. I do everything in the copied folder.
3. After I have done the changes, I copy my part code to the svn folder, and do a submit on my part code only.
4. Then I do a SVN update, merge other person's code manully one by one to my copied folder.
5. Then I continue debug the project in the copied folder.
6. repeat from step 3 to 5 until the project finished.

Thursday, December 24, 2009

OOP344 Assignment 2

I'm working on IO_Edit and IO_Vedit.
IO_Vedit inherite IO_Edit.
How about those ~IO_Vedit(), IO_Vedit::display(), IO_Vedit::set(const void *str), IO_Vedit::editable() const? Do I need to write something there?
or just call ~IO_Edit(), IO_Edit::display(), IO_Edit::set(const void *str), IO_Edit::editable() const?
What do I need to do in void (*_Help)(MessageStatus, IO_Form&), bool (*_Validate)(const char*, IO_Form&)?
Thanks ahead.

Sunday, November 1, 2009

some coding doesn't understand.

What are these following sentences mean?
1. SNode(Dstring Data, SNode* next=(SNode*) 0);
2. this->top = (SNode*)0;
These sentences are shrinked. It should be several sentence for each.
Can somebody help me extend those sentences?
Thanks ahead.

Sunday, October 18, 2009

OOP344 Assignment 1 compile under Borland C++

I followed the instruction and compiled my code.
I got a lot of error:
warning w8065 test.c 73: call to function 'io_init' with no prototype in function main
many these kind of error.
like all my functions are no prototype.
What should I do under ciol.c?
VCC and LINUX are past already.
Thanks ahead.

OOP344 assignment 1 compile on Matrix

I passed all 10 tests under vcc environment.
I tried to compile the assignment 1 on matrix account.
I use ssh to upload 3 files, test.c, ciol.c, ciol.h
I changed PLATFORM PLT_LNX in ciol.h.
I enter: gcc -o as1 test.c
I got a lot of error.
like this:
ciol.c:618: error: 'F7_KEY' undeclared (first use in this function)
ciol.c:619: error: 'F8_KEY' undeclared (first use in this function)
ciol.c:620: error: 'F9_KEY' undeclared (first use in this function)
actually, I have all the define in ciol.h
# if PLATFORM == PLT_LNX

#define UP 259
#define DOWN 258
#define LEFT 260
#define RIGHT 261
#define PGUP 339
#define PGDN 338
#define ENTER 10
I think I missed some steps before do the gcc -o as1 test.c
I didn't compile the ciol.c
How to compile all this under linux?
Thanks ahead.

Saturday, October 17, 2009

OOP344 assignment 1 IsTextEditor=1 left,right key problem

Assignment 1 Link
IsTextEditor=1,
leftkey and right key:
case LEFT_KEY:
if ((*offset)>4){
(*offset)-=4;
(*curpos)+=4;
}else{
(*curpos)+=(*offset);
(*offset)=0;
done=1;
}
break;
case RIGHT_KEY:
if(io_len(str)-*offset-fieldlen>4{
*offset = *offset +4;
*curpos=*curpos-4;
}else if(io_len(str)-*offset-fieldlen>0){
*offset=io_len(str)-fieldlen;
*curpos=*curpos-io_len(str)+*offset+fieldlen;
done=1;
}
break;
it can't pass test9.20
how the left key and right key works. for example, if I click left key, what's the *curpos and *offset should be? I'm confusing about this.
If I just put
case RIGHT_KEY:
case LEFT_KEY:
done=1;
break;
it can pass test9.20. But I think this is not the correct answer.
Anybody has some idea about this? I'm already two day behind the due day.
Thanks.