代码:
char flower[10] = "rose"; std::cout << flower << "s are red ";
输出:
“roses are red”
注意:flower是指向数组的第一个值得地址,然而cout会根据这个地址一直打印地址对应的数组,直到 .