SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Pastimes : PSUEDO_CODE -- Ignore unavailable to you. Want to Upgrade?


To: Kid Rock who wrote (5)8/9/2000 9:48:28 PM
From: Tom C  Respond to of 32
 
#define SUCCESSFUL 1000B
#define pqtFUNNY 0001B
#define pqtPERCEPTIVE 0010B
#define pqtIGNORANT 0100B
#define pqtOTHER 0000B
TypeDef byte POST_QUALITY_TYPE;

class CIterestingDiscusion : public PuedoCode, public ISIThread
{

public:
CIterestingDiscusion(POST ValuedInput);
~CIterestingDiscusion();
boolean Funny() { if (m_bTickleFunnyBone == true) return true; else return false;}
private:
void Reservations() { return true; }

protected:
virtual FIRSTAMENDMENT *Speech() = 0;

public:
POST_QUALITY_TYPE EvalPostQuality(POST *pPost) {
switch(pPost->Quality) {
case 'FUNNY'
return pqtFUNNY & SUCCESSFUL;
case 'PERCEPTIVE':
return pqtPERCEPTIVE & SUCCESSFUL;
case 'MALICIOUS'
return pqtMALICIOUS & ~SUCCESSFUL;
case 'IGNORANT'
return pqtIGNORANT & ~SUCCESSFUL;
otherwise:
return pqtOTHER & ~SUCCESSFUL;

}
}

protected:
boolean m_bStayAway;
boolena (m_bTickleFunnyBone;

};

};

CIterestingDiscusion::CIterestingDiscusion(POST ValuedInput)
{
m_bStayAway = !(SUCCESSFULL & EvalPostQuality(&ValuedInput));
m_bTickleFunnyBone = pqtFUNNY & EvalPostQuality(&ValuedInput));
}