#include <stdio.h> int main(void) { int i, j, k; float x, y; ... 超過 buf 的容量,若超過的話會有緩衝區溢位的問題,你可以使用 snprintf ,限制最大的字串長度:
確定! 回上一頁