A simple solution is to use the string class fill constructor string (size_t n, char c); which fills the string with n copies of character c .
確定! 回上一頁