有沒有一種方法可以指定要輸出的字符串中多少個(gè)字符(類似于ints中的小數(shù)位)?printf ("Here are the first 8 chars: %s\n", "A string that is more than 8 chars");想要打印: Here are the first 8 chars: A string
- 3 回答
- 0 關(guān)注
- 1498 瀏覽
添加回答
舉報(bào)
0/150
提交
取消