//IO_Form& IO_Form::operator<<(IO_Field* f){
// return IO_Form::add(f,true,false);
//}
hey can anyone help me with this?
Friday, November 27, 2009
Friday, November 20, 2009
IO_Form private > add()
i just want to see if i'm on the right track... well our group.. so can someone take a look?
int IO_Form::add(IO_Field* f, bool dynamic, bool submitter){
IO_Node *Temp = new IO_Node(f, dynamic, submitter);
if(Tail){
Tail->_next = Temp;
Temp->_prev = Tail;
Temp->_next = NULL;
Tail = Temp;
Current = Tail;
}
else{
Current = Head = Tail = Temp;
}
f->set(this);
return length();
}
int IO_Form::add(IO_Field* f, bool dynamic, bool submitter){
IO_Node *Temp = new IO_Node(f, dynamic, submitter);
if(Tail){
Tail->_next = Temp;
Temp->_prev = Tail;
Temp->_next = NULL;
Tail = Temp;
Current = Tail;
}
else{
Current = Head = Tail = Temp;
}
f->set(this);
return length();
}
Subscribe to:
Posts (Atom)