chapter1_1

Page 1

Watcharin Puangplia

01/06/2554

1


( ) : : 1302 13.00 16.00 . !" 09.00 16.00 . watcharina_co@hotmail.com 086-5718783

2


$ % $& ' ' $ ( ) $ $*+ $ % , & 5 )( - 20 )(

- . 15 )(

-/ . 60 )( $ 100 )(

3


1 2 3 45 6 7 4 8 9 2

0 12 ( 3 )4 ? . $ 2 6/ ( $ + ' 4 ? (/ . 6/ ( $ Algorithms $A

+ B( ) ) /D C (Problem Definition and Problem Analysis) (P ( ) (-- (Planing and Design) ,& 6/ ( $ (Programming) B -( )( 4,6/ ( $ (Program Testing and Debugging) + ( )-+ ! 6/ ( $ (Program Documentation and Maintenance)

9 1 : 8 9 2 (Concept of Programming)

4


8 A (Flowchart)

U), P &*B& / )6 , P

D U &*% % P ,& + Pseudo Code

/ ) 2 $ /W $ , . C++ / )6 , . C++ , Y 2 Z 6/ ( $. C++ 6 , 6/ ( $. C++ [/(-- ,& + * . C++ + - ( (Comment)

9 C D E F C++

5


8 23 9 C6 9 H E F C++ $ $ , , $[ B, , $[ % . C++ 2 (/ ( ) &,* 2 (/ â–ª B, 2 (/ % . C++ â–ª [/(--, / ) \2 (/ â–ª 2 Y 3* 2 (/

6


1 57 I2 9 C :D H E F C++

3* $ + U U 2\ 2 3* $ / & - & 3* $ 2 \ 2 + $ [ (Expression) / &* B, 2 (/

7


9J: A 9 C 48 23 ( B P â–Ş ( B P & ) , ) â–Ş ( B P /W , $ -, $[ & - B â–Ş -, $[ & ) , ) â–Ş -, $[ /W , $

1 41K2

L D 8 9 2 - !$ \ (-- 3 + â–Ş + * if, If-else, if-else if, if 0 if, switchdcase - !$ \ (-- â–Ş while, do-while, for 8


6 9 (Array) [ -2 (/ / ) \2 (/ 2 (/ B2' e â–ª 1 $ 2 â–ª 2 $ 2 , fA , $[ %

9


OP (Function) [ -1C â–ª 4 - &1C 3 1C $ 2 g â–ª 1C &*P[ % ,AY / ) . , 1C â–ª 1C &*4$'$& -/ ' ' â–ª 1C &*$& - ' â–ª 1C &*$& ' ' - 1C

10


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.