C语言中有printf()函数作为格式化输出,QString则提供了一个sprintf()函数实现了相同的功能,例如: str.sprintf("%s %.1f%%", “perfect competition”, 100.0); 这句 ...
確定! 回上一頁