爬文還是不行

看板MacDev作者 (呼啦啦..)時間19年前 (2005/10/25 04:03), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/2 (看更多)
幫朋友問 #include <stdio.h> #include <stdlib> #include <time/h> int main() { srand( time( NULL ) ); double test; test = rand(); printf( "test = %f", test ); return 0; } 我把上面這樣的指令存成 test.c 在桌面 要如何用終端機來讓他執行呢 用 gcc -o test ~/desktop/test.c 也不行 請問有方法嗎 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.4.247

10/25 12:08, , 1F
gcc -o test ~/Desktop/test.c
10/25 12:08, 1F
文章代碼(AID): #13NQwJOR (MacDev)
討論串 (同標題文章)
以下文章回應了本文
4
5
19年前, 2005/10/25 06:16
完整討論串 (本文為第 1 之 2 篇):
4
5
19年前, 2005/10/25 06:16
1
1
19年前, 2005/10/25 04:03
文章代碼(AID): #13NQwJOR (MacDev)