question.h

来自「C++&datastructure书籍源码,以前外教提供现在与大家共享」· C头文件 代码 · 共 23 行

H
23
字号
#include <iostream>
#include <string>
using namespace std;

// simple Question class for testing other classes

class Question
{
  public:
    Question()
    {   // nothing to initialize
    }
    void Create()
    {   // the same question is used every time
    }
    void Ask()
    {   cout << "what is your favorite color? ";
    }
    string Answer() const
    {   return "blue";
    }
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?