爬文還是不行
幫朋友問
#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
10/25 12:08, 1F
討論串 (同標題文章)
MacDev 近期熱門文章
PTT數位生活區 即時熱門文章