CVisual C C Primer Chap 1 Chap 2

  • Slides: 27
Download presentation
C++概觀和Visual C++簡介 C++ Primer中文版 Chap 1 Chap 2 C++概觀和Visual C++簡介 1

C++概觀和Visual C++簡介 C++ Primer中文版 Chap 1 Chap 2 C++概觀和Visual C++簡介 1

C/C++程式語言簡介 n C語言 n n 以程序為基礎的程式設計(Procedural-Based Programming) C++語言 n n n 延伸自C語言. 以物件為基礎的程式設計(Object-Based Programming)

C/C++程式語言簡介 n C語言 n n 以程序為基礎的程式設計(Procedural-Based Programming) C++語言 n n n 延伸自C語言. 以物件為基礎的程式設計(Object-Based Programming) 物件導向程式設計(Object-Oriented Programming) C++概觀和Visual C++簡介 2

Hello World (1) n 程式碼: #include<iostream. h> void main() { cout<<"Hello World. n"; }

Hello World (1) n 程式碼: #include<iostream. h> void main() { cout<<"Hello World. n"; } n 執行結果: Hello World. C++概觀和Visual C++簡介 3

目前最普遍的C++編譯器 n Visual C++ (6. 0 with Service Pack 3) n n n C++

目前最普遍的C++編譯器 n Visual C++ (6. 0 with Service Pack 3) n n n C++ Builder (5. 0) n n n 支援Windows最新的技術. 先求穩定, 再求符合C++標準規格. 真正支援C++標準規格(ANSI C++). 第一個真正的C++ RAD(Rapid Application Development) GNU C++ Compiler n 真正跨平台. (Windows, Linux, …等等) C++概觀和Visual C++簡介 8

使用Viusal C++建立Hello World程式(2) C++概觀和Visual C++簡介 11

使用Viusal C++建立Hello World程式(2) C++概觀和Visual C++簡介 11

使用Viusal C++建立Hello World程式(4) 把helloworld. cpp加入專案的Source files裡. C++概觀和Visual C++簡介 13

使用Viusal C++建立Hello World程式(4) 把helloworld. cpp加入專案的Source files裡. C++概觀和Visual C++簡介 13

使用Viusal C++建立Hello World程式(5) C++概觀和Visual C++簡介 14

使用Viusal C++建立Hello World程式(5) C++概觀和Visual C++簡介 14

使用Viusal C++建立Hello World程式(6) C++概觀和Visual C++簡介 15

使用Viusal C++建立Hello World程式(6) C++概觀和Visual C++簡介 15

程序性語言示意圖 Global data Function C++概觀和Visual C++簡介 Function 20

程序性語言示意圖 Global data Function C++概觀和Visual C++簡介 Function 20

物件導向語言示意圖 Data Object Member Function C++概觀和Visual C++簡介 21

物件導向語言示意圖 Data Object Member Function C++概觀和Visual C++簡介 21

製作程式流程 原始程式(Source code) 目的檔(object file) 前置處理(preprocessor) 編譯器編譯(Compile) 連結器連結(Linked by linker) 程式庫(Library) 可執行檔(executable) C++概觀和Visual C++簡介

製作程式流程 原始程式(Source code) 目的檔(object file) 前置處理(preprocessor) 編譯器編譯(Compile) 連結器連結(Linked by linker) 程式庫(Library) 可執行檔(executable) C++概觀和Visual C++簡介 27