輸出課表代碼矩陣
Hint: 2-D array, double-for loop
herrDeng網內搜尋
自訂搜尋
Ads
2009年10月15日 星期四
2009年10月12日 星期一
2009年10月8日 星期四
2009年10月1日 星期四
2009年9月24日 星期四
2009年9月23日 星期三
2009年9月21日 星期一
2009年9月17日 星期四
2009年9月10日 星期四
2009年6月9日 星期二
fopen
修改下列C程式,將你上學期的各科成績出到excel檔!
#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;
}
訂閱:
文章 (Atom)
熱門文章
-
河內塔程式
-
將費氏數列輸出至一long 陣列 其中f[0]=1, f[1]=2, f[n]=f[n-1]+f[n-2] (n>=2)
-
統計第一作業 2, 3, 8, 9
-
array ex 1, 2,3,7,8
-
Fibonacci sequence: a[0]=1, a[1]=1, a[2]=2, a[3]=3, a[4]=5,...... In general, a[n]=1 as n=0,1, a[n]=a[n-1]+a[n-2] as n>=2. Use this...
-
算上學期加權平均
-
任何一個國家任一時段連續5年的出生率統計
-
輸出字串20次
-
教育部為提昇全民資安素養與電腦防護能力,本部於101年9月5日至11月5日舉辦「全民資安素養自我評量」活動,請在活動期間內踴躍上網檢測資訊安全素養認知程度,並有機會參與抽獎,詳情請參閱活動網站(網址: https://isafe.moe.edu.tw/event
-
簡答題: 比較C/C++, Java, VB的差異!