Linux 範例程式跑不過 - Linux

By Dinah
at 2011-10-24T00:12
at 2011-10-24T00:12
Table of Contents
※ 引述《aurora9624 (我還太淺)》之銘言:
: 標題: [問題] Linux 範例程式跑不過
: 時間: Sun Oct 23 13:01:42 2011
:
:
: FILE fp =NULL; /*檔案物件指標,包含緩衝區和檔案*/
不能在這裡給變數值。
:
:
: fprintf(fp, "new threaf heap : %d stack
: %d\n",*(p->heap),*(p->stack));
fprintf要FILE*,你給它FILE。下面還有两個一樣的錯誤。
: if (fp=fopen("test.txt","wb"))==NULL {
你這是第一天寫C?這行自己检查錯誤!
--
In heaven, all the interesting people are missing.
--
: 標題: [問題] Linux 範例程式跑不過
: 時間: Sun Oct 23 13:01:42 2011
:
:
: FILE fp =NULL; /*檔案物件指標,包含緩衝區和檔案*/
不能在這裡給變數值。
:
:
: fprintf(fp, "new threaf heap : %d stack
: %d\n",*(p->heap),*(p->stack));
fprintf要FILE*,你給它FILE。下面還有两個一樣的錯誤。
: if (fp=fopen("test.txt","wb"))==NULL {
你這是第一天寫C?這行自己检查錯誤!
--
In heaven, all the interesting people are missing.
--
Tags:
Linux
All Comments

By Aaliyah
at 2011-10-28T14:20
at 2011-10-28T14:20

By Wallis
at 2011-11-01T22:07
at 2011-11-01T22:07
Related Posts
ubuntu新手

By Agnes
at 2011-10-23T13:36
at 2011-10-23T13:36
ubuntu新手

By Jake
at 2011-10-23T11:01
at 2011-10-23T11:01
ubuntu新手

By Dinah
at 2011-10-23T04:43
at 2011-10-23T04:43
debian的sources.list和安裝軟體問題

By Liam
at 2011-10-23T00:31
at 2011-10-23T00:31
ubuntu新手

By Leila
at 2011-10-23T00:00
at 2011-10-23T00:00