Saturday, December 5, 2009

io-vedit work

I fixed up io_vedit today. I added a loop that will call edit until either _Valdiate returns true or edit terminates and returns a non-navigation key. I'm not sure if I used the right arguement for the function pointer _Validate but at least the code compiles. If anyone in my team reads this, take a look at io_vedit and see if I made any mistakes.

Friday, December 4, 2009

Assignment work

Well, the assignment is going pretty well. Eric adn myself gave Anton a hand with his assignment, scoping out the very small detail that was holding up his code's compilation. Online correspondence works in a pinch but sometimes you need a second pair of eyes on hand to help out. Thus, vedit is on its way to being complete.

Monday, November 30, 2009

Update

Well, things are going ok with the assignment. There were some hiccups, including a mistake with someone accidently committing a file prematurely, and thus leaving the project uncompilable. Luckily, we had backups in the tag folder and so we were able to have Fardad wipe out the trunk and committ the working files into it.

Wednesday, November 18, 2009

The project

I'm still getting used to working on such a project with a bigger group. I'm used to doing everything on my own or having to do a larger portion of the code, so it's a bit weird for me to have to rely on others to get the work done. Not that I'm complaining, but it makes me feel that I should be contributing more but I don't know how. The problem is that most of the team isn't communicating with the others and so I don't know how to help them out.

As for my last post, the problem was that the program was when the program ended, the top part of the frame would disappear. By putting in a getch, this stop the program from ending prematurely, so I could see that the frame was being constructed properly.

Tuesday, November 10, 2009

Windows 7 oddity

I was compiling my assignment 1 today and I noticed that the screen wasn't clearing when it should be. I ran the code before I upgraded to Windows 7 and it worked fine. Sometimes, some characters aren't being output. To be on the safe side, I had a colleague of mine run the code on Windows XP and he didn't experience any problems. I'm concerned about this, since I don't want to donwgrade to Vista, and there isn't any other computers at home that I can use. If anybody else notices these problems, or even better has a way to fix this problems, let me know.

Update: The compile I was using is VCC (I'm using Microsoft Visual C++ 2008 Express Edition).

Monday, November 9, 2009

IO_Frame work

I've started work on IO_Frame but I've seemed to have hit a snag. Whenver I try to compile, I get the error message " error LNK2019". For some reason, it doesn't like how I'm using the io_display function. I'll keep at it but this is fustrating the heck out of me.

Tuesday, October 27, 2009

group meeting

SO we just had our group meeting for the group project. I was glad that Fardad did give us some pointers on the use if svn, but the meeting took too long. Also, we went over what we need to do right now, so that's also a plus.

For next time, I hope we can go over what our individual responsibilities are going to be. I'd like to be able to start planning on what I'm going to do, so that I'm not rushed into a bad implementation. I just hope that we're not just sitting around for a good hour or 2 again.

Wednesday, October 7, 2009

A1tester bug

I was running through the a1tester's tests and I noticed that in test6 (the one with the 4 checkboxs), I wasn't able to move left or right with the arrow keys. I'm sure that it's a bug in this file, since my arrow keys work fine in test 2. I'm wondering if anyone else has experienced this problem.

Friday, September 25, 2009

Assignment #1 Problem

I was going over the io_displayflag function stuff located here and I noticed a problem. First of all, it didn't specify which value we were supposed to return after it's done. Secondly, and this is more confusing, is that we cannot alter the contents of the format char. array, since it was designated as being const. This conflicts with the requirement that we're supposed to replace format[1] with either a space (' ') or a check (I'm using 'X' here), since const stuff can't be modified. I'm stumped here and I can't think of what to do. Maybe the arguements should be changed. If anyone has any thoughts on the matter, I'll all ears.

Wednesday, September 23, 2009

Helpful Reading

I was looking for helpful resources for C programming and I found it with the book labeled simply "The C Programming Language" by Brian Kernighan and Deenis M. Ritchie. It contains alot of the commands that C has and some helpful examples as well. It's not very pretty to look at but it does its job well enough.

Thursday, September 17, 2009

Challenge #1

I was looking over some of the code for the first challenge under the To do List and I was inspired to do my own version of the code. Mine looks like:


void GetInt(char *strint, int val){
char string[80];
int num=0; int num2=0;

/* THis will convert each digit to a char, then cuts off a digit due to
narrowing involved with dividing an integer. Comes out in reverse order */
while( val >0){
string[num++]= (val%10) + '0';
val/=10;
}

/*reverses the order, so the string will be in the right order.*/
for(num-=1;num>=0;num--){
strint[num2++]=string[num];
}
strint[num2]='\0';

}/*GetInt */

I've tested it and it works perfectly. True, it's not the most memory efficient solution (there's 80 elements in the local char array 'string') but I wasn't sure if malloc, calloc or realloc were allowed to be used for this challenge. Then again, I might of saved myself some headache by avoiding them.

Tuesday, September 8, 2009

My first blog.

Hello anybody reading this. This is my first post on this blog. Sorry that I couldn't think of anything interesting to say. This is for academic purposes.