del_sp(str); //调用重载的del_sp. cout << str << "\n长度" << str.size() << endl;. return 0;. } void del_sp(char *src) // 删除C风格字符串中的空格.
確定! 回上一頁