Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

這個程式有問題嗎?

0 views
Skip to first unread message

lover

unread,
Jul 25, 1998, 3:00:00 AM7/25/98
to
【 在 maninmi...@csie.nctu.edu.tw (canda) 的大作中提到: 】
: int main(void)
: {
: int x = add(1,2);
: return x;
: }
: inline int add (int a, int b)
: {
: return a+b;
: }
: 謝謝!

fuction does not declare before may have problem!!!

--
[m [1;34m※ 來源:‧中原大學資管森林站 bbs.mis.cycu.edu.tw‧[FROM: 140.135.136.235] [m

lover

unread,
Jul 25, 1998, 3:00:00 AM7/25/98
to
[D【 在 maninmi...@csie.nctu.edu.tw (canda) 的大作中提到: 】

: int main(void)
: {
: int x = add(1,2);
: return x;
: }
: inline int add (int a, int b)
: {
: return a+b;
: }
: 謝謝!

function does not declare . This may cause problem
.

^.^

unread,
Jul 27, 1998, 3:00:00 AM7/27/98
to
《 在 simony...@bbs.mis.cycu.edu.tw (lover) 的大作中提到: 》
: [D【 在 maninmi...@csie.nctu.edu.tw (canda) 的大作中提到: 】

: : int main(void)
: : {
: : int x = add(1,2);
: : return x;
: : }
: : inline int add (int a, int b)
: : {
: : return a+b;
: : }
: : 謝謝!
: function does not declare . This may cause problem
: ..

inline function 必須在第一次呼叫之前定義

--
[m [1;32m※ 來源:‧蛋捲廣場 bbs.tku.edu.tw‧[FROM: 163.13.240.20] [m

Seraph

unread,
Jul 27, 1998, 3:00:00 AM7/27/98
to
==> teli...@bbs.tku.edu.tw (^.^) 在 oop 版提到:
: 《 在 simony...@bbs.mis.cycu.edu.tw (lover) 的大作中提到: 》

: : [D【 在 maninmi...@csie.nctu.edu.tw (canda) 的大作中提到: 】
: : function does not declare . This may cause problem
: : ..
: inline function 必須在第一次呼叫之前定義
任何function 在使用前,最好都要在main()之前有宣告,要不就定義在main()
之前
--


眾 生 芸 芸 難 貌 相 , 海 水 濤 濤 難 斗 量 。

平 凡 不 是 平 凡 客 , 世 情 百 態 掌 握 中 。

--
Origin: 成大資工BBS站 (vlsi1.iie.ncku.edu.tw) From: speech124.iie.ncku.edu.tw

0 new messages