看板Programming
標 題Re: [問題] 一個簡單的c問題
發信站中央資管龍貓資訊天地 (Wed Mar 21 20:29:00 2007)
轉信站ptt!ctu-reader!ctu-gate!news.nctu!news.ncu!news.mgt.ncu!bbs
main不能用一般function傳的方法
這在施威銘 c語言徹底研究是基本問題
==> [email protected] (小州) 提到:
: ※ 引述《[email protected]》之銘言:
: > #include <stdio.h>
: > #include <stdlib.h>
: > void trying(float *b)
: > {
: > *b=4;
: > }
: > int main()
: > {
: > float *b;
: > trying(b);
: > printf("b=%3.2f ",b);
: > }
--
◎
龍貓資訊天地(
bbs.mgt.ncu.edu.tw)
◎[
brucetsao]From: 140.115.82.88