Wednesday, February 22, 2006

The c++ midterm: aka, evil

struct Exam{
//insert exam specs here
};

class Emily{
private:
//insert Emily specs here
public:
Emily(); //default constructor
~Emily(); //default destructor
};

void writeExam(Exam theExam)
{ if (theExam=="c++")
{ ~Emily(); }
else {
//do stuff }
}

int main()
{ Exam todaysExam="c++";
writeExam(todaysExam);
return(0);
}

1 Comments:

At 8:39 PM , Anonymous Anonymous said...

eep! No more C++!
*kills it all*

I don't want to see it again for another week!

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home