5.下列代码段对应的输出结果是( )。
string a = "nihao", b = "101"; a += b + a; cout << a;
别灰心,再试一次!
【解析】a = a+b+a = "nihao"+"101"+"nihao" = "nihao101nihao"。
【答案】C