1、以下三条输出语句分别输出什么.docVIP

  • 23
  • 0
  • 约4.57千字
  • 约 6页
  • 2018-12-20 发布于四川
  • 举报
1、以下三条输出语句分别输出什么.doc

1、以下三条输出语句分别输出什么? main() { char str1[] = abc; char str2[] = abc; const char str3[] = abc; const char str4[] = abc; const char* str5 = abc; const char* str6 = abc; cout boolalpha ( str1==str2 ) endl; // 0 cout boolalpha ( str3==str4 ) endl; // 0 cout boolalpha ( str5==str6 ) endl; // 1 cout str1 str1 endl; cout str2 str2 endl; cout str3 str3 endl; cout str4 str4 endl; cout str5 str5 endl; cout str6 str6 endl; } 2、以下代码有什么问题? cout (true?1:1) endl; 前后类型不一致,后一参数无隐式法转换为前一参数类型 3、C++中的空类,默认产生哪些类成员函数? 答:class Empty { public: ????Emp

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档