類似地, printf 是針對標準輸出的格式化方案,如果想格式化字串,可以使用 sprintf : int sprintf( char *restrict buffer, const char *restrict format, ... );.
確定! 回上一頁