34
基基基 基基 Software Laboratory 基基基基基 基基基基

基本軟體實驗 Software Laboratory

  • Upload
    heidi

  • View
    114

  • Download
    0

Embed Size (px)

DESCRIPTION

基本軟體實驗 Software Laboratory. 建立控制台 開發環境. 建立環境設定檔 vc-console.bat. 編輯以下 vc-console.bat 檔案,置於 Learn-C 資料夾中. @echo off rem 設定 Learn-C 作為目前資料夾 , 請依實際情況修改 cd “C:\Documents and Settings\aimm\My Documents\Learn-C" rem 設定目前所在磁碟機 , 請依實際情況修改 C: rem 依據你的喜好設定提示字元 prompt $g rem - PowerPoint PPT Presentation

Citation preview

Page 1: 基本軟體實驗 Software Laboratory

基本軟體實驗Software Laboratory

建立控制台開發環境

Page 2: 基本軟體實驗 Software Laboratory

建立環境設定檔 vc-console.bat

@echo off

rem 設定 Learn-C作為目前資料夾 ,請依實際情況修改

cd “C:\Documents and Settings\aimm\My Documents\Learn-C"

rem 設定目前所在磁碟機 ,請依實際情況修改

C:

rem 依據你的喜好設定提示字元

prompt $g

remecho 歡迎進入 VC6.0控制台,你現在所在的資料夾是rem

cd

@echo off

rem 設定 Learn-C作為目前資料夾 ,請依實際情況修改

cd “C:\Documents and Settings\aimm\My Documents\Learn-C"

rem 設定目前所在磁碟機 ,請依實際情況修改

C:

rem 依據你的喜好設定提示字元

prompt $g

remecho 歡迎進入 VC6.0控制台,你現在所在的資料夾是rem

cd

編輯以下 vc-console.bat檔案,置於 Learn-C資料夾中

Page 3: 基本軟體實驗 Software Laboratory

建立控制台捷徑

Page 4: 基本軟體實驗 Software Laboratory

建立控制台捷徑cmd /K “C:\Documents and Settings\aimm\My

Documents\Learn-C\vc6-console"

cmd /K “C:\Documents and Settings\aimm\My Documents\Learn-C\vc6-console"

Page 5: 基本軟體實驗 Software Laboratory

雙擊進入 VC6.0 控制台

Page 6: 基本軟體實驗 Software Laboratory

基本軟體實驗Software Laboratory

IDE(Integrated Development Environment)

整合式發展環境

Page 7: 基本軟體實驗 Software Laboratory

Visual C++ 6.0 IDE

Page 8: 基本軟體實驗 Software Laboratory

Visual C++ 6.0 IDE

Page 9: 基本軟體實驗 Software Laboratory

建立一專案

Page 10: 基本軟體實驗 Software Laboratory

建立控制台類型專案

Page 11: 基本軟體實驗 Software Laboratory

選擇專案存放資料夾

Page 12: 基本軟體實驗 Software Laboratory

選擇專案存放資料夾

Page 13: 基本軟體實驗 Software Laboratory

選擇專案存放資料夾

Page 14: 基本軟體實驗 Software Laboratory

確定建立控制台類型專案

Page 15: 基本軟體實驗 Software Laboratory

選擇空專案

Page 16: 基本軟體實驗 Software Laboratory

專案生成資訊

Page 17: 基本軟體實驗 Software Laboratory

HelloWorld_IDE 專案

Page 18: 基本軟體實驗 Software Laboratory

HelloWorld_IDE 專案生成之檔案

Page 19: 基本軟體實驗 Software Laboratory

HelloWorld_IDE 專案生成之檔案

Page 20: 基本軟體實驗 Software Laboratory

撰寫程式 新增 C 程式檔案

Page 21: 基本軟體實驗 Software Laboratory

撰寫程式 新增 C 程式檔案

Page 22: 基本軟體實驗 Software Laboratory

編輯程式 main.c

Page 23: 基本軟體實驗 Software Laboratory

編輯程式 main.c

Page 24: 基本軟體實驗 Software Laboratory

建構執行檔 HelloWorld_IDE.EXE

Page 25: 基本軟體實驗 Software Laboratory

建構執行檔 HelloWorld_IDE.EXE

Page 26: 基本軟體實驗 Software Laboratory

執行 HelloWorld_IDE.EXE

Page 27: 基本軟體實驗 Software Laboratory

執行 HelloWorld_IDE.EXE

Page 28: 基本軟體實驗 Software Laboratory

基本軟體實驗Software Laboratory

Program Debug

程式除錯

Page 29: 基本軟體實驗 Software Laboratory

Visual C++ 6.0 Debug

Page 30: 基本軟體實驗 Software Laboratory

Visual C++ 6.0 Debug

Page 31: 基本軟體實驗 Software Laboratory

建置工具列

Compile (Ctrl+F7) – 編譯目前檔案 Build (F7) – 建置專案 Stop Build (Ctrl+Break) – 停止建置專案 Execute Program (Ctrl+F5) – 執行程式 Go (F5) – 開始或繼續除錯 Insert/Remove Breakpoint (F9) – 新增 / 移除中斷點

Page 32: 基本軟體實驗 Software Laboratory

除錯工具列

Watch – 顯示或隱藏監看視窗 Variables – 顯示或隱藏變數視窗 Registers - 顯示或隱藏暫存器視窗 Memory - 顯示或隱藏記憶體視窗 Call Stack - 顯示或隱藏呼叫堆疊視窗 Disassembly - 顯示或隱藏反組譯視窗

Page 33: 基本軟體實驗 Software Laboratory

編譯訊息 - Success

Page 34: 基本軟體實驗 Software Laboratory

編譯訊息 - Fail