看板 PCCU-CS 關於我們 聯絡資訊
這是..單純的...練打字XD... #include <stdio.h> main() { FILE *fp; int a = 1000, b = 5, c = 40; int x = 1, y = 10, z = 100; char delm [] = " ==== \n"; fp = fopen("mat.txt", "w"); if(fp == NULL) return; fputs(delm, fp); fprintf(fp,"%4d%4d%4d\n%4d%4d%4d\n", a, b, c, x, y, z); fputs(delm, fp); fclose(fp); } -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 125.224.247.2
u9555kimo:↑家藤BASS.........囧 10/17 17:18
u9555kimo:↑696推薦... (可以叫他不要在亂按了嗎) 10/17 17:25