Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 0 Overview. Why you are here? Where will you go? What is this course for?

Similar presentations


Presentation on theme: "Chapter 0 Overview. Why you are here? Where will you go? What is this course for?"— Presentation transcript:

1 Chapter 0 Overview

2 Why you are here? Where will you go? What is this course for?

3 What Are Computers? Computers are powerful tools for (generalized) computation –Numerical analysis, database, document processing, control, gaming, … Computers are fast, precise, and highly flexible. Complementary roles between man and machine –Human being: Thinking, innovating, … –Machine: Data processing, computation, …

4 Computer Programming What is programming? –Computers are quick, reliable, and flexible. –The flexibility of computers is a result of the idea "stored-program control". –We instruct computer to perform tasks via programming - the writing of computer control programs. –Windows programming is the writing of computer programs running within Windows environments.

5 Computer Programming (cont) Programming paradigms –Hardwired control, in contrast to flexible stored- program control –Machine code –Assembly language –High-level language –Macro of packages, extensions to designed functionality to fit customer's need –Script of operating systems, such as batch files, shell script,... –Script of virtual machines, such as Netscape Navigator and Microsoft Internet Explorer are virtual machine for JavaScript.

6 Assembly Language Machine Dependent Executable Machine Code Symbolic version of machine code Machine dependent Direct, low-level hardware control one instruction to one machine code Assembler High-level Language Machine independent (portable) High productivity Compiler one statement to many machine codes

7 Computer Programming (cont) Language translators –Assembler –Compiler –Interpreter –Virtual machines

8 Computer Programming (cont) High-level programming languages –Procedural FOrmula TRANslator (FORTRAN) Beginner's All-purpose Symbolic Instruction Code (BASIC) COmmon Business Oriented Language (COBOL) Pascal C –Functional PROgramming in LOGic (PROLOG) –Object-oriented Object Pascal C++ –…

9 Editor XXX.c Source Program Compiler XXX.obj Object Program Linker Library XXX.exe Executable C:\XXX↓ Debugger Development Cycle

10 Borland Turbo C++ 1.01 Download from http://bit.kuas.edu.tw/~csshieh/teach/97A/ cp/tcpp101.exe http://bit.kuas.edu.tw/~csshieh/teach/97A/ cp/tcpp101.exe Uncompress to a temporary directory Run INSTALL.EXE and specify destination directory Start the Integrated Development Environment (IDE) ~\TC\BIN\TC.EXE

11 Options | Full menus Options | Directories... | Output Directory File | New File | Save File | Open File | Save as... Compile | Compile to OBJ Compile | Link EXE file Compile | Build all

12 File | DOS shell... exit Run | Run... Window | User screen Help | Index Run | Step over Debug | Toggle breakpoint Debug | Inspect...

13 Press [Alt]+[PrtSc] to capture screen of active program.

14 Borland Turbo C++ 1.01 Microsoft Visual C++ 2005 Express Edition Dev C++ 4.X Intel …


Download ppt "Chapter 0 Overview. Why you are here? Where will you go? What is this course for?"

Similar presentations


Ads by Google