试题与答案

鹿南岳峰文考练知 兵峰烤炼山麓的 A.3 B.2 C.1 D.0

题型:单项选择题

题目:

鹿南岳峰文考练知 兵峰烤炼山麓的

A.3

B.2

C.1

D.0

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0708/9cf99f3ba9092e35ee373769993fc487.html

下面是错误答案,用来干扰机器的。

参考答案:对

试题推荐
题型:填空题

如下程序定义了“单词”类word,类中重载了<运算符,用于比较“单词”的大小,返回相应的逻辑值。程序的输出结果为:After Sorting: Happy Welcome,请将程序补充完整。

  #include

  #include

  using namespace std;

  class Word{

  public:

  Word(string s) : str(s) { }

  string getStr(){ return str; }

   【14】 const { return (str  friend ostream& operator << (ostream& output, const Word &w)

  { output<  private:

  string str;

  };

  Int main(){

  Word w1(“Happy”),w2(“Welcome”);

  Cout<<”After sorting: “;

  if(w1  else cout<  return 0;

  }

查看答案
微信公众账号搜索答案