#include <stdio.h>

class TestPaper
{
public:
	void TestQuestion1()
	{
		printf("杨过得到，后来给了郭靖，炼成倚天剑、屠龙刀的玄铁可能是【】a.球磨铸铁 b.马口铁 c.高速合金钢 d.碳塑纤维\n");
		printf("答案: %c\n",Answer1());
	}
	
	void TestQuestion2()
	{
		printf("杨过、程英、陆无双铲除了情花，造成【】a.使这种植物不再害人 b.使一种珍稀物种灭绝 c.破坏了那个生物圈的生态平衡 d.造成该地区沙漠化\n");
		printf("答案: %c\n",Answer2());
	}
	
	void TestQuestion3()
	{
		printf("蓝凤凰致使华山师徒、桃谷六神呕吐不止，如果你是大夫，会给他们开什么药【】a.阿司匹林 b.牛黄解毒片 c.氟哌酸 d.让他们喝大量的升牛奶 e.以上全不对\n");
		printf("答案: %c\n",Answer3());
	}
protected:
	virtual char Answer1()=0;
	virtual char Answer2()=0;
	virtual char Answer3()=0;
};

class TestPaperA : public TestPaper
{
protected:
	virtual char Answer1()
	{
		return 'b';
	}
	
	virtual char Answer2()
	{
		return 'c';
	}
	
	virtual char Answer3()
	{
		return 'a';
	}
};

class TestPaperB : public TestPaper
{
protected:
	virtual char Answer1()
	{
		return 'c';
	}
	
	virtual char Answer2()
	{
		return 'a';
	}
	
	virtual char Answer3()
	{
		return 'a';
	}
};

int main()
{
	printf("学生甲抄的试卷:\n");
	TestPaper* studentA = new TestPaperA();
	studentA->TestQuestion1();
	studentA->TestQuestion2();
	studentA->TestQuestion3();
	printf("学生乙抄的试卷:\n");
	TestPaper* studentB = new TestPaperB();
	studentB->TestQuestion1();
	studentB->TestQuestion2();
	studentB->TestQuestion3();
	
	delete studentA;
	delete studentB;
	return 0;
}