10
Watcharin Puangplia 01/06/2554 1

chapter1_1

Embed Size (px)

DESCRIPTION

การเขียนโปรแกรมคอมพิวเตอร์เบื้องต้น

Citation preview

Watcharin Puangplia 01/06/2554

1

�� �������������� �������������� ��������� ��������� ((������))�������������� �������������� ��������� ��������� ((������))� ������ � ��� : ���������������� �������������� : 1302 �������� �� 13.00 � 16.00 �.

���!" �� 09.00 � 16.00 �.� [email protected][email protected]� 086-5718783

2

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

� ���-��� 20 �)(��� �-����.�� 15 �)(��� �-/���.�� 60 �)(��� � $ 100 �)(��

3

� 1��2�3��45���6�����7����4����8������9��2� 0�12�( ���3��)4�?� 0�12�( ���3��)4�?� .�����$�� 2���� 6/�(��$�+������'��4�?� �������(/�.���6/�(��$� Algorithms ��������A$

� 9��1:����8������9��2 (Concept of Programming)� �+���B(�) ����)��/CD�� (Problem Definition and Problem Analysis)� �+���B(�) ����)��/CD�� (Problem Definition and Problem Analysis)� ��(P�(�)���(-- (Planing and Design)� ,&��6/�(��$ (Programming)� �B�-(�)(��4,6/�(��$ (Program Testing and Debugging)� �+�����(�)-+��!������6/�(��$ (Program Documentation and Maintenance)

4

� ����8���A����� (Flowchart)� ����U),��P������&*B&� ����U),��P������&*B&� /�)6����,��P������ �D����U��&*%��%�P������ ���,&������+���� Pseudo Code

� 9�C�D�E�F� C++� /�) �2�� �$/W�$�,��.��� C++� /�)6����,��.��� C++� /�)6����,��.��� C++� ,�Y�2�������Z��6/�(��$.��� C++� 6�������,��6/�(��$.��� C++� �[/(--���,&���+��*�.��� C++� �+�-�����(��� (Comment)

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*���$������+�� U����U�2\�2��� ��3*���$�����/�&�-�&�-� ��3*���$�����2���\�2��� �+�� �$�[���������� (Expression)� ���/�&*�����B,��2� (/�

7

� ���9J:�A�9�C�����48��23�� (B�P�������������� (B�P�������������▪ (B�P��&�)���,�)▪ (B�P�/W�,��� �$

� ��-,��$[�����&��-���B▪ ��-,��$[��&�)���,�)▪ ��-,��$[�/W�,��� �$

� ���1�41K2�L�������D����8�����9��2� ���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� (/��������� 2� (/�����������B2'��e▪ ������� 1 $�2�▪ ������� 2 $�2�

� ���,��fA�,��$[�%��������

9

� OP����� (Function)� �[������-1C������� �[������-1C������▪ 4�-��&1C��������3�1C������$�2�g��▪ 1C�������&*P[�%������,AY���

� /�).�,��1C������▪ 1C�������&*4$'$&�����-/'��'�▪ 1C�������&*$&�����-�'�▪ 1C�������&*$&���'��'����-������1C������▪ 1C�������&*$&���'��'����-������1C������

10