全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1014
推到 Plurk!
推到 Facebook!

我是個完全沒碰過程式設計ㄉ新手

尚未結案
jamesbest77
一般會員


發表:1
回覆:0
積分:0
註冊:2005-08-13

發送簡訊給我
#1 引用回覆 回覆 發表時間:2005-08-13 01:34:21 IP:218.170.xxx.xxx 未訂閱
我用Dev-C++阿,但是怎樣不要讓他閃過去阿?我連打helloㄉ視窗都有問題 幫我檢查,他一直說system有問題?    #include < stdio.h > int main (void) { printf ("hello \n"); system("pause"); return 0; }
暗黑破壞神
版主


發表:9
回覆:2301
積分:1627
註冊:2004-10-04

發送簡訊給我
#2 引用回覆 回覆 發表時間:2005-08-13 08:17:39 IP:211.74.xxx.xxx 未訂閱
新手? OK. 一步一步來。 system() 這個函數的功能是什麼?
zilch
中階會員


發表:5
回覆:87
積分:78
註冊:2002-09-24

發送簡訊給我
#3 引用回覆 回覆 發表時間:2005-08-13 12:06:42 IP:218.166.xxx.xxx 未訂閱
必須
#include 
system invokes the operating system command processor to execute an operating system command, batch file, or other program named by the string command, from inside an executing C program. To be located and executed, the program must be in the current directory or in one of the directories listed in the PATH string in the environment. The COMSPEC environment variable is used to find the command processor program, so it need not be in the current directory. Return Value If command is a NULL pointer, system returns nonzero if a command processor is available. If command is not a NULL pointer, system returns 0 if the command processor was successfully started. 發表人 - zilch 於 2005/08/13 19:56:31
malanlk
尊榮會員


發表:20
回覆:694
積分:577
註冊:2004-04-19

發送簡訊給我
#4 引用回覆 回覆 發表時間:2005-08-13 14:44:41 IP:210.68.xxx.xxx 未訂閱
樓上打的是
#include 
sdi235
一般會員


發表:4
回覆:4
積分:1
註冊:2005-05-21

發送簡訊給我
#5 引用回覆 回覆 發表時間:2005-08-14 23:19:53 IP:203.204.xxx.xxx 未訂閱
或許你可以試試看 在INCLUDE地方再加入一行 #include < conio.h > return 0; 前面 加入getch(); 應該就可以了... 發表人 - sdi235 於 2005/08/14 23:25:34
ddy
站務副站長


發表:262
回覆:2105
積分:1169
註冊:2002-07-13

發送簡訊給我
#6 引用回覆 回覆 發表時間:2005-08-15 01:40:34 IP:61.62.xxx.xxx 未訂閱
請配合本站規定 標題無意義,請自行修改為有意義之名稱 若未處理,三日後依規定處理 < src="http://delphi.ktop.com.tw/loadfile.php?TOPICID=8147403&CC=182217"> 成長四步曲 多看--->多做--->多問--->多發表
系統時間:2024-05-05 21:20:23
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!