Wednesday, September 30, 2009

finishing up io.edit

case DEL_KEY:
for(i= *offset + *curpos; str[i];i++) {
str[i] = str[i+1];
}
break;


wow... lol.

How to look at this assignment:

I've been looking at it through a normal text.editor based program. Whereas, if I were to look at it as manipulating the strings (eg. DEL_KEY is just chomping up the string one at a time depending on what value your cursor position is... hope that made sense) then it becomes a lot easier to work

No comments:

Post a Comment