摘要: 前几日,YX参加×公司实习笔试(http://yangxu2012.com/wordpress/?p=127),有道c++编程题,要求用Polymorphism实现石头剪子布。遂实现之,以期抛砖引玉。 1 #include <iostream> 2 #include <iomanip> 3 #include <string> 4 #include <stdlib.h> 5 using namespace std; 6 7 class IGuess 8 { 9 public:10 virtual string getName() = 0; 阅读全文
posted @ 2012-05-02 21:35 tangyili 阅读(689) 评论(0) 推荐(0) 编辑