K12教育赛事综合服务平台
聚乐之家官方网站
下载聚乐之家官方App
专注青少年竞赛题库网站
string ch = "hello"; if(ch[5] == NULL) { cout << "right" << endl; } else if (ch[5] == '\0') { cout << "wrong" << endl; } else { cout << "hello" << endl; }
right
wrong
hello
不能正确执行