#include <stdio.h>
#include <stdlib.h>
int main()
{
char s[8][30]={
"CS0160資訊安全實習,丙",
"CS0160資訊安全實習,甲",
"GE0105A勞作教育,丙",
"IM0007程式設計,丙",
"IM0068統計學[二],甲",
"IM0164資訊安全實習,丙",
"OHA001導師,丙",
"OHTA003在校輔導時間,乙"
};
FILE* fp=fopen("score.xls","w");
for (int i=0; i<8; i++)
fprintf(fp,"%d\t%s\n",i,s[i]);
fclose(fp);
system("Pause");
return 0;
}
herrDeng網內搜尋

自訂搜尋
Ads
2009年6月9日 星期二
fopen
修改下列C程式,將你上學期的各科成績出到excel檔!
訂閱:
文章 (Atom)