We had a meeting on Wednesday. We didn't really get much covered as we had to fix a problem, however we've all been working pretty hard individually so we're going to make it for the deadline.
We're going to meet up (some of us) on Saturday to finish up what we have to hand in.
I just started working on the program right now and it seems like it's giving me errors after I updated it. It works fine when i compile it in 'tags' but not in 'trunk'... :(
Thursday, November 26, 2009
Tuesday, November 24, 2009
io_edit
Updated io_edit. had trouble for a bit figuring out why i couldn't call owner, turns out io_field had call the header file of io_form.
Saturday, November 21, 2009
btp 300
BTP 300 - Ljubo mentinoed that it was the degree course similar to oop344. I've been working on the workshops and will post the solutions to all of them soon.
I find that oop344 is lacking some of these properties, but then again, I think it's supposed to be more about self-study
Anton
I find that oop344 is lacking some of these properties, but then again, I think it's supposed to be more about self-study
Anton
Tuesday, November 17, 2009
Can't compile
I tried to work on assignment 2. io_menu has a lot of errors, the person who is assigned to the task committed it with errors! You know who you are and I'm calling you out!
Btw. Just j/k, I'm sure this sort of thing happens all the time. And yes I already messaged mr./ms. io_menu about it not compiling
anton
Btw. Just j/k, I'm sure this sort of thing happens all the time. And yes I already messaged mr./ms. io_menu about it not compiling
anton
Wednesday, November 11, 2009
IO_edit trublez
Sent this to Jonathan today I'm hitting (naturally) on some rocky road:
Jonathan,
I'm currently having trouble with the bold. For the constructor it states, if it is framed then pass row+1, col+1 to IO_Field. I'm getting errors saying it cannot pass pointer. The other trouble im having is trying to retrieve the value for top in io_frame. As you are aware, top is private :$. so I called the function getTop but I can't do that. We'll talk tomorrow!
//pass to IO_Field Constructor
//if (framed) {
// IO_Field::IO_Field(row+1, col+1);
//}
//else
// IO_Field::IO_Field(row, col);
}
void IO_Edit::display() const {
int Top;
Top = _owner->getTop()+0;
}
Jonathan,
I'm currently having trouble with the bold. For the constructor it states, if it is framed then pass row+1, col+1 to IO_Field. I'm getting errors saying it cannot pass pointer. The other trouble im having is trying to retrieve the value for top in io_frame. As you are aware, top is private :$. so I called the function getTop but I can't do that. We'll talk tomorrow!
//pass to IO_Field Constructor
//if (framed) {
// IO_Field::IO_Field(row+1, col+1);
//}
//else
// IO_Field::IO_Field(row, col);
}
void IO_Edit::display() const {
int Top;
Top = _owner->getTop()+0;
}
Sunday, November 8, 2009
IO_Edit
November 8, 2009
Updated everything onto the repository. Now I'm trying to code
IO Edit PseudoCode:
Create an array of 'maxdatalen + 1 chars' and set IO_Field::_data to point to it
Constructor:
+ "row", "col", and "frameChars" pass directly to the Frames class "top" "left" and "framechars". pass width of (fieldlen + 2) and height of (fieldlen + 3)
+ pass to IO_Field constructor. if framed false: row and col. if framed true: row+1 and col+1
Destructor:
+ if object is marked to be dynamic (it should unless i did the 2nd type of constructor) delete[] character content of data in IO_Field
Display():
+ if IO_Edit is framed call IO_Frame display(). Use: _owner->getTop(), _owner->getLeft() as topOffset and leftOffset arguments.
+ call ciol's io_display() function passing getRow() and getCol() and fieldlen from IO_Field and IO_Edit, respectively
Edit():
+ call ciol's io_edit with corresponding data from IO_Edits attributes
+ ignore Owner argument
+ return value returned by ciol's io_edit
Editable():
+return true;
Set():
+copy incoming str into _data (in IO_Field) up to 'maxdatalen' characters (note: if using strncpy() make sure string is null terminated)
Updated everything onto the repository. Now I'm trying to code
IO Edit PseudoCode:
Create an array of 'maxdatalen + 1 chars' and set IO_Field::_data to point to it
Constructor:
+ "row", "col", and "frameChars" pass directly to the Frames class "top" "left" and "framechars". pass width of (fieldlen + 2) and height of (fieldlen + 3)
+ pass to IO_Field constructor. if framed false: row and col. if framed true: row+1 and col+1
Destructor:
+ if object is marked to be dynamic (it should unless i did the 2nd type of constructor) delete[] character content of data in IO_Field
Display():
+ if IO_Edit is framed call IO_Frame display(). Use: _owner->getTop(), _owner->getLeft() as topOffset and leftOffset arguments.
+ call ciol's io_display() function passing getRow() and getCol() and fieldlen from IO_Field and IO_Edit, respectively
Edit():
+ call ciol's io_edit with corresponding data from IO_Edits attributes
+ ignore Owner argument
+ return value returned by ciol's io_edit
Editable():
+return true;
Set():
+copy incoming str into _data (in IO_Field) up to 'maxdatalen' characters (note: if using strncpy() make sure string is null terminated)
Issue Solved
I had redefined the defaults in the .h and .cpp files.
it should look like this in the .cpp file
IO_Edit::IO_Edit(char* str, int row, int col, int fieldlen,
int maxdatalen, int* insertmode,
bool framed, const char* frameChars)
it should look like this in the .cpp file
IO_Edit::IO_Edit(char* str, int row, int col, int fieldlen,
int maxdatalen, int* insertmode,
bool framed, const char* frameChars)
Issue
I'm getting this error:
rror C2572: 'IO_Edit::IO_Edit' : redefinition of default parameter : parameter 7
1> c:\users\koko\documents\oop344 assignment 2. antons repository\trunk\prj\io_edit.h(12) : see declaration of 'IO_Edit::IO_Edit'
hrmph
it's the consturctor of the class. but ehy?
rror C2572: 'IO_Edit::IO_Edit' : redefinition of default parameter : parameter 7
1> c:\users\koko\documents\oop344 assignment 2. antons repository\trunk\prj\io_edit.h(12) : see declaration of 'IO_Edit::IO_Edit'
hrmph
it's the consturctor of the class. but ehy?
Subscribe to:
Posts (Atom)