大廈游覽圖,通過命令行來實現 System.out.println("where 顯示當前在什么地方") System.out.println("list 列出當前位置的物品") System.out.println("list allspots 列出大廈內所有地點") System.out.println("list spots 列出當前位置附近的地點") System.out.println("list goods 列出當前位置的物品") System.out.println("goto someplace 到另一個地點") System.out.println("look somegoods 查詢某個物品是否在當前地點") System.out.println("help 命令行幫助") System.out.println("EXIT 退出命令行")
上傳時間: 2015-12-08
上傳用戶:Miyuki
#ifdef _AFXDLL Enable3dControls() // Call this when using MFC in a shared DLL #else Enable3dControlsStatic() // Call this when linking to MFC statically #endif CPreviewDialogDlg dlg m_pMainWnd = &dlg int nResponse = dlg.DoModal() if (nResponse == IDOK) { // TODO: Place code here to handle when the dialog is // dismissed with OK } else if (nResponse == IDCANCEL) { // TODO: Place code here to handle when the dialog is // dismissed with Cancel } // Since the dialog has been closed, return FALSE so that we EXIT the // application, rather than start the application s message pump. return FALSE }
標簽: Enable3dControls Enable3d AFXDLL shared
上傳時間: 2015-12-19
上傳用戶:hustfanenze
n皇后問題求解(8<=n<=1000) a) 皇后個數的設定 在指定文本框內輸入皇后個數即可,注意: 皇后個數在8和1000 之間(包括8和1000) b) 求解 點擊<Solve>按鈕即可進行求解. c) 求解過程顯示 在標有Total Collision的靜態文本框中將輸出當前棋盤上的皇后總沖突數. 當沖突數降到0時,求解完畢. d) 求解結果顯示 程序可以圖形化顯示8<=n<=50的皇后求解結果. e) 退出程序,點擊<EXIT>即可退出程序.
上傳時間: 2016-01-28
上傳用戶:ztj182002
Ink Blotting One method for escaping from a maze is via ‘ink-blotting’. In this method your starting square is marked with the number ‘1’. All free, valid squares north, south, east and west around the number ‘1‘ are marked with a number ‘2’. In the next step, all free, valid squares around the two are marked with a ‘3’ and the process is repeated iteratively until : The EXIT is found (a free square other than the starting position is reached on the very edge of the maze), or, No more free squares are available, and hence no EXIT is possible.
標簽: method ink-blotting Blotting escaping
上傳時間: 2014-12-03
上傳用戶:123啊
C語言精彩百例第1-44例 實例1 數據類型轉換 實例2 轉義字符 實例3 關系和邏輯運算 實例4 自增自減 實例5 普通位運算 實例6 位移運算 實例7 字符譯碼 實例8 指針操作符 實例9 if判斷語句 實例10 else-if語句 實例11 嵌套if語句 實例12 switch語句 實例13 for語句 實例14 while語句 實例15 do-while語句 實例16 break和continue語句 實例17 EXIT()語句 實例18 綜合實例 實例19 一維數組 實例20 二維數組 實例21 字符數組 實例22 數組初始化 實例23 數組應用 實例24 函數的值調用 實例25 函數的引用調用 實例26 數組函數的調用 實例27 命令行變元 實例28 函數的返回值 實例29 函數的嵌套調用 實例30 函數的遞歸調用 實例31 局部和全局變量 實例32 變量的存儲類別 實例33 內部和外部函數 實例34 綜合實例1 實例35 綜合實例2 實例36 變量的指針 實例37 一維數組指針 實例38 二維數組指針 實例39 字符串指針 實例40 函數指針 實例41 指針數組 實例42 二維指針 實例43 指針的初始化 實例44 綜合實例
上傳時間: 2014-01-16
上傳用戶:royzhangsz
modem編程 本地機使用ATDT命令撥號,遠程機設為自動響應方式,即可進入聯機方式, 進行終端通信。 在聯機方式下,按PageUp鍵上載文件,按PageDn鍵下載文件,Ctrl-O呼出主菜單,退出聯機方式使用Ctrl-D鍵。退出終端仿真器使用EXIT命令。 主程序使用C語言編寫。使用早期的C編譯器可以進行編譯。終端方式為VT100.
上傳時間: 2014-01-22
上傳用戶:xz85592677
程序說明 本地機使用ATDT命令撥號,遠程機設為自動響應方式,即可進入聯機方式, 進行終端通信。 在聯機方式下,按PageUp鍵上載文件,按PageDn鍵下載文件,Ctrl-O呼出主菜單,退出聯機方式使用Ctrl-D鍵。退出終端仿真器使用EXIT命令。 主程序使用TC編寫。終端方式為VT1
上傳時間: 2016-04-20
上傳用戶:lnnn30
linux下用C語言寫的聊天程序!/*BUG and NOTE: Not join protect to Shared Memory Segments,example Semaphore Arrays. Not check the parameters validity. When transmit may be error. If the client program no right EXIT,others cannot know,the service program shouldbe check the client program whether exist timing. The program when EXIT(), it do not delete the Shared Memory Segments,you maybe use atEXIT() but the program have some processes. When one process is EXIT(),others is continue. The service program s action is few. And so on. */
標簽: Semaphore Segments example protect
上傳時間: 2014-01-25
上傳用戶:xhz1993
看n2實例 #Create a simulator object set ns [new Simulator] #Define different colors for data flows #$ns color 1 Blue #$ns color 2 Red #Open the nam trace file set nf [open out-1.nam w] $ns namtrace-all $nf set f0 [open out0.tr w] set f1 [open out1.tr w] #Define a finish procedure proc finish {} { global ns nf $ns flush-trace #Close the trace file close $nf #Execute nam on the trace file EXIT 0 } #Create four nodes set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] #Create links between the nodes $ns duplex-link $n0 $n2 1Mb 10ms
標簽: simulator Simulator different Create
上傳時間: 2016-07-02
上傳用戶:wfl_yy
RunExp.m: -Changed script into a function. -Coded to accept the numberofRuns as an Argument. -Added code for automatic EXIT from Matlab and Shutdown of WindowsPC.
標簽: numberofRuns Argument function Changed
上傳時間: 2014-07-29
上傳用戶:ryb