看板 Programming 關於我們 聯絡資訊
main不能用一般function傳的方法 這在施威銘 c語言徹底研究是基本問題 ==> kenduest.bbs@bbs.sayya.org (小州) 提到: : ※ 引述《datagram.bbs@ptt.cc》之銘言: : > #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