找回密碼 或 安全提問
 註冊
|註冊|登錄

伊莉討論區

搜索
尊貴會員無限觀看附件圖片伊莉需要你的贊助和支持儲值後自動升級用戶組
mega無碼神奇寶貝霹靂火影三上上原亞衣
ssis848あまえん優希幽世堕ち姫ルnicole r明星

休閒聊天興趣交流學術文化旅遊交流飲食交流家庭事務PC GAMETV GAME
熱門線上其他線上感情感性寵物交流家族門派動漫交流貼圖分享BL/GL
音樂世界影視娛樂女性頻道潮流資訊BT下載區GB下載區下載分享短片
電腦資訊數碼產品手機交流交易廣場網站事務長篇小說體育運動時事經濟
上班一族博彩娛樂

【高清繁】✡ 霹靂英

[簡]單人房、日照一般

[繁]從Lv2開始開外掛

[超清繁中]霹靂英雄戰

(4月新番)[繁]為美好

(4月新番)[簡]怪異與
C & C++ 語言C# 語言Visual Basic 語言PHP 語言JAVA 語言
查看: 1590|回復: 17
打印上一主題下一主題

[問題]problem in C language write .txt[複製鏈接]

Rank: 2Rank: 2

帖子
41
積分
322 點
潛水值
23350 米
跳轉到指定樓層
樓主
發表於 2012-4-2 03:34 PM|只看該作者|倒序瀏覽
若對尊貴或贊助會員有任何疑問,歡迎向我們查詢。我們的即時通或MSN: admin@eyny.com
please read the code:

when I ready try to generate a .hex file for this code, the system said 'FILE' and 'fp' are undefined identifier. Do anyone know what happen?
附件: 你需要登錄才可以下載或查看附件。沒有帳號?註冊
分享分享0收藏收藏0支持支持0

使用道具檢舉

Invi6666 該用戶已被刪除
頭香
發表於 2012-4-2 10:34 PM|只看該作者
成為伊莉的版主,你將獲得更高級和無限的權限。把你感興趣的版面一步步地發展和豐盛,那種滿足感等著你來嚐嚐喔。
What compiler you use? I don't have any problem after compiled your program

使用道具檢舉

Rank: 2Rank: 2

帖子
41
積分
322 點
潛水值
23350 米
3
發表於 2012-4-3 05:46 AM|只看該作者
成為伊莉的版主,你將獲得更高級和無限的權限。把你感興趣的版面一步步地發展和豐盛,那種滿足感等著你來嚐嚐喔。
Invi6666 發表於 2012-4-2 10:34 PM
下載: 訪客無法瀏覽下載點,請先 註冊登入會員

What compiler you use? I don't have any problem after compiled your program

Keil uVision2

I use this to generate a .hex file.
回覆中加入附件並不會使你增加積分,請使用主題方式發佈附件。

使用道具檢舉

Rank: 2Rank: 2

帖子
133
積分
234 點
潛水值
16469 米
4
發表於 2012-4-3 06:56 AM|只看該作者
I think Keil uVision2 is not support FILE function. You need ensure keil c library
have FILE function and include it.
若對尊貴或贊助會員有任何疑問,歡迎向我們查詢。我們的即時通或MSN: admin@eyny.com

使用道具檢舉

Rank: 2Rank: 2

帖子
41
積分
322 點
潛水值
23350 米
5
發表於 2012-4-3 06:34 PM|只看該作者
成為伊莉的版主,你將獲得更高級和無限的權限。把你感興趣的版面一步步地發展和豐盛,那種滿足感等著你來嚐嚐喔。
mp0801 發表於 2012-4-3 06:56 AM
下載: 訪客無法瀏覽下載點,請先 註冊登入會員

I think Keil uVision2 is not support FILE function. You need ensure keil c library
have FILE functio ...

I am sorry, can you tell me more. Do I need to include some library or use other command?
...
瀏覽完整內容,請先 註冊登入會員





如果瀏覽伊莉時速度太慢或無法連接,可以使用其他分流瀏覽伊莉,www01.eyny.com(02,03)。

使用道具檢舉

Rank: 2Rank: 2

帖子
133
積分
234 點
潛水值
16469 米
6
發表於 2012-4-3 09:03 PM|只看該作者
分享使你變得更實在,可以使其他人感到快樂,分享是我們的動力。今天就來分享你的資訊、圖片或檔案吧。
Keil C is support embedded system platform. Just like 8051, ARM ......
It c library is not same with computer C(GCC).
Keil C have not all C(GCC) library function.
You use FILE maybe include <stdio.h>, but Keil C <stdio.h>  must have FILE function.
I remember Keil C is not support FILE function.
If you want create HEX file, you can try computer C platform.(window,linux,...)

使用道具檢舉

Rank: 2Rank: 2

帖子
41
積分
322 點
潛水值
23350 米
7
發表於 2012-4-4 05:11 PM|只看該作者
mp0801 發表於 2012-4-3 09:03 PM
下載: 訪客無法瀏覽下載點,請先 註冊登入會員

Keil C is support embedded system platform. Just like 8051, ARM ......
It c library is not same with ...

sorry, don't understand.
computer C plarform?
...
瀏覽完整內容,請先 註冊登入會員

使用道具檢舉

Rank: 3Rank: 3Rank: 3

帖子
328
積分
2651 點
潛水值
10849 米
8
發表於 2012-4-5 03:27 AM|只看該作者
如果瀏覽伊莉時速度太慢或無法連接,可以使用其他分流瀏覽伊莉,www01.eyny.com(02,03)。
cwfw 發表於 2012-4-4 05:11 PM
下載: 訪客無法瀏覽下載點,請先 註冊登入會員

sorry, don't understand.
computer C plarform?
you mean using keil C in linux or what???????

what reason makes you to use keil C ?
如果沒有明天
我想見你最後一面
若對尊貴或贊助會員有任何疑問,歡迎向我們查詢。我們的即時通或MSN: admin@eyny.com

使用道具檢舉

Rank: 2Rank: 2

帖子
133
積分
234 點
潛水值
16469 米
9
發表於 2012-4-5 06:37 AM|只看該作者
window 7 is OK, and I design some thing for embedded system.
So I have some experience for using Keil C

使用道具檢舉

Rank: 2Rank: 2

帖子
41
積分
322 點
潛水值
23350 米
10
發表於 2012-4-5 08:07 AM|只看該作者
EdisonX 發表於 2012-4-5 03:27 AM
下載: 訪客無法瀏覽下載點,請先 註冊登入會員

what reason makes you to use keil C ?

it's one part of my project actually.




分享使你變得更實在,可以使其他人感到快樂,分享是我們的動力。今天就來分享你的資訊、圖片或檔案吧。

使用道具檢舉

Rank: 3Rank: 3Rank: 3

帖子
328
積分
2651 點
潛水值
10849 米
11
發表於 2012-4-5 04:22 PM|只看該作者
execute me, can I answer those in Chinese ? Orz

I don't know why using file stream instructions in embedded system ,
but I think this action is not rational.

FILE struct is defined in <stdio.h> header
but Keil C has no this header, the reason as below description.

Microprocessor is not personal computer (PC).
Is there any disc on the system ?

If not, it means there is no disc, no operation system, no document system.
...
瀏覽完整內容,請先 註冊登入會員
如果沒有明天
我想見你最後一面

使用道具檢舉

Rank: 2Rank: 2

帖子
41
積分
322 點
潛水值
23350 米
12
發表於 2012-4-5 04:57 PM|只看該作者
EdisonX 發表於 2012-4-5 04:22 PM
下載: 訪客無法瀏覽下載點,請先 註冊登入會員

execute me, can I answer those in Chinese ? Orz

I don't know why using file stream instructions in  ...

you can answer in english, of course.
...
瀏覽完整內容,請先 註冊登入會員
如果你忘記伊莉的密碼,請在登入時按右邊出現的 '找回密碼'。輸入相關資料後送出,系統就會把密碼寄到你的E-Mail。

使用道具檢舉

Rank: 2Rank: 2

帖子
133
積分
234 點
潛水值
16469 米
13
發表於 2012-4-5 06:19 PM|只看該作者
Yes or No ? Actually, Keil C is not support file system, but I think you
can search third party distribution. Maybe you can find it or write a
new FILE function for yourself.

若有安裝色情守門員,可用無界、自由門等軟件瀏覽伊莉。或使用以下網址瀏覽伊莉: http://www.eyny.com:81/index.php

使用道具檢舉

Rank: 3Rank: 3Rank: 3

帖子
328
積分
2651 點
潛水值
10849 米
14
發表於 2012-4-5 07:00 PM|只看該作者
若對尊貴或贊助會員有任何疑問,歡迎向我們查詢。我們的即時通或MSN: admin@eyny.com
As mp0801 said,
" Keil C is not support file system " ,
even the full version of keil C  has no those instructions ( or header ) .
如果沒有明天
我想見你最後一面
若新密碼無法使用,可能是數據未更新。請使用舊密碼看看。

使用道具檢舉

Rank: 2Rank: 2

帖子
41
積分
322 點
潛水值
23350 米
15
發表於 2012-4-9 01:07 PM|只看該作者
mp0801 發表於 2012-4-5 06:19 PM
下載: 訪客無法瀏覽下載點,請先 註冊登入會員

Yes or No ? Actually, Keil C is not support file system, but I think you
can search third party dist ...

I am sorry, you can answer in Chinese.
I want to ask what if I write the data to excel? will it work? because my project must use keli C, so I must find a way to store the data, in txt or in excel is ok.
...
瀏覽完整內容,請先 註冊登入會員





若有安裝色情守門員,可用無界、自由門等軟件瀏覽伊莉。或使用以下網址瀏覽伊莉: http://www.eyny.com:81/index.php

使用道具檢舉

您需要登錄後才可以回帖 登錄 | 註冊

Powered by Discuz!

© Comsenz Inc.

重要聲明:本討論區是以即時上載留言的方式運作,對所有留言的真實性、完整性及立場等,不負任何法律責任。而一切留言之言論只代表留言者個人意見,並非本網站之立場,用戶不應信賴內容,並應自行判斷內容之真實性。於有關情形下,用戶應尋求專業意見(如涉及醫療、法律或投資等問題)。 由於本討論區受到「即時上載留言」運作方式所規限,故不能完全監察所有留言,若讀者發現有留言出現問題,請聯絡我們。有權刪除任何留言及拒絕任何人士上載留言,同時亦有不刪除留言的權利。切勿上傳和撰寫 侵犯版權(未經授權)、粗言穢語、誹謗、渲染色情暴力或人身攻擊的言論,敬請自律。本網站保留一切法律權利。
回頂部