❥关于C++之C风格字符串
char cat[4] = {'c', 'a', 't', '\0'};cout << cat;// 打印:catchar dog[3] = ['d', 'o', 'g'};cout << dog;// 打印:dog€??由打印结果可知:c-string末尾是以’\0’结尾的,否则不是c-string!#include<cstring>// 使用strlen函数...char fish[] = "Bub