Code:
namespace QuestionAnswerProgram

{
public __sealed class QuestionAnswerFoo : public System::QuestionAnswer
{
QuestionAnswerFoo(void)
{
this->ptrYou = new System::QuestionAnswer::Person(System::QuestionAnswer::PersonTypeAsker);

this->ptrYou->questions += new System::QuestionAnswer::Question(S"Does the demo version support those too?");

if (!this->ptrYou->questions->Item[0]->MethodForAnswer->ReadOnly)
this->ptrYou->questions->Item[0]->MethodForAnswer += new System::QuestionAnswer::WayToFindOut(S"Download the demo version");

else if (this->ptrYou->questions->Item[0]->ExpectsAnswer == true)
this->ptrYou->questions->Item[0]->answers += new System::QuestionAnswer::Answer((new Boolean(true)).ToString());
}
private:
System::QuestionAnswer::Person* ptrYou;
}
}



... .NET rocks...

ok sorry this means as much as "YES".

Last edited by Joey; 04/03/05 22:37.