SlideShare uma empresa Scribd logo
1 de 41
Baixar para ler offline
C
Outline
 • C programming
 •
 •     F
 •        F
 • Flowchart (   F   )
Programming language
 •                            F
             F            F

 •                   FF           F           (machine
     language)   F                    2
      –      F       ,                    ,      F
Programming language
 •                            -
           FF F                       F   F            F
                                                  (F
     Compiler, Interpreter)

 •                                F           F
C Programming
 •       F
     – F text editor  F source code
           F
     – source file               F compile   F
      C compiler
       • F F             F F source code
          compile F        F F
       •          F F object file (
               )
C Programming
   –          object file   link     library              (
                                               F
                      object code)         F         F   execute
       file
   – execute file F
             F (run) F                             F F compile
C Programming
   –            tools              text editor + compiler +
       linker F F F            F
                                  (      F
                        F )   Turbo C compiler
Text editor
                  create

Error   Source file (*.c)
                    C compiler
        Object file (*.obj)              Library (header file , *.h)
                              C linker

                         Execute file (*.exe)
• Bitwise Control          F           F         (bit)
           F                               F
   –                 F         F F F

• Pointer Implementation
  (pointer)
   –            F                              F F
• Case Sensitive                  F
              F
   –        var1                Var1
   – main() Main()                     F

•       F               F        ; (semicolon)   F
                    ;                F
    –           F                       F F          F
            F               F
• Structure language                   F
               F              F (Control
  structure) F

• Procedural language
           module ( F               F       F
             F          ) F             F
  function
F           C
                                         Preprocessor

Header     #include <stdio.h>

                                          Comment
           int main()
           {
Function        /* display message */     Statement

                printf(“Hello World”);
                return 0;
           }
F                  C
1.   F                (Header)
•        F            F                   F   F
              F
•                         F      F

•            F        F 2 F
             1.1 Preprocessor statement
             1.2 Declaration statement
F                       C
1.1 Preprocessor statement

•             F              F               F

•                 F F                #
•                   F                    F
  2
• #define         #include
F                  C
          1.1.1 #include

•          F          F                 F           F
    (Library)
•                 header file (*.h) F stdio.h, string.h
•     F         F     ( F )                     /       F
                           F       printf()               F
              F                        F       ( F          )
F                C
       1.1.1 #include

• printf()         ( F )                      F
     F standard input output
•             F              #include <stdio.h>
•          F F F       F         <>
F                     C
                1.1.2 #define
•       F            F          F F          F                            F
                            #define pi 3.14159
    -                    F idenfier pi         F       F        3.14159
                     #define pi 3.14159
    -              F F         string 3.14156                  F F
•                         preprocessor F F         ;       F
F               C
1.2 Declaration statement
• F                         (GLOBAL Variable)
• F
F                    C
2.      F               (Function)
•           F                            F      F         F
•                   F             F     (statement) F
•                               F   F F               F
•      F F                  F        F            F     F
     main()
         F
F                                 C
                     comment
•                                  F                                   (comment)
                      F
•                                      F                       F                /*
                              */
• F                       F                        F                    F            F
                                               F
•            F F                                       F           F
    //         F F                         F               F                F
F            F flowchart
Symbol                              Meaning

             Terminator Symbol



             Process Symbol



             Input/Output Symbol




                                              21
Symbol                          Meaning

         Display /Monitor Symbol



         Document Symbol



         Decision Symbol



         Keyboard Symbol



         External Subroutine Symbol
                              C Compiler
Symbol                         Meaning

         Comment Symbol



         Flowline Symbol



         On-page Connector Symbol



         Off-page Connector Symbol
F          F flowchart

• Examples:
   Terminator Symbol : F      F     F


                            START




                            STOP
F         F flowchart

• Examples:
   Process Symbol : F
F         F flowchart

• Examples:
  Input/Output Symbol : F   F
          F
F        F flowchart

• Examples:
  Display /Monitor Symbol : F    F          F
        F


                                Write sum
F        F flowchart

• Examples:
• Document Symbol : F     F   F
   F               F
F         F flowchart

• Examples:
  Decision Symbol : F
F        F flowchart

• Examples:
  External Subroutine Symbol : F   F   F
    C Compiler F F F
F          F flowchart

• Examples:
   External Subroutine Symbol
F        F flowchart

• Examples:
  Keyboard Symbol : F     F   F
  Comment Symbol : F
   F       F
F         F flowchart

• Examples:
   Offpage Connector Symbol : F
        F
F          F flowchart

• Examples:
  Flowline Symbol : F          F    F        F
  On-page Connector Symbol : F           F



                                   Yes


                       No
F               F flowchart

•        F 1             F               F
    flowchart
                                 F 3 F
         F   F   F           F
             3
F                                 F flowchart

•                   F         2                                             F
        F                                   F F
                                                  F   F                 F
                F       F F             F                 (10,000   )
            F                     F
F   F flowchart
1
•                                                     F
                           100,000        F               F
    F                                                         FF       F F
        1.       F               F   F 500,000 .
        2.           F F     F          50,000 .
•       Flowchart                             F                    F
                F F F FF                          F                    F
              F F -999
2
•         flowchart                               1        F      F
    F F                A, B, C, D,                F                   F
     F     F       F F          F
    – F F F        A F           F           Very Good
    – F F F        B F       F               Good
    – F F F        C F           F           So So
    – F F F        D F           F           Poor
    – F F F        F F               F       Fail !
    – F F F                              F    F       Invalid !
3
•                 flowchart                        F                    1
              F     F             F           F1             10 F       F F
         F              F F               F            F F          F Invalid
    Number !                  F                                     F         F F
     F                                F                       num                   F
             F F num                  10
4
•                FF F FF   F   3 F
                                     F
           F F                 F F
•      F
    Input name : Suchada
    Input sex (Male / Female) : Female
    Input year of birth : 2500
    -----------------------------
    Hello Miss. Suchada
    you are 52 years old

Mais conteúdo relacionado

Mais procurados

1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลง1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลงmuang82
 
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Elseใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-ElseNattapon
 
ธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิตธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิตThanyamon Chat.
 
สร้างสรรค์ผลงานด้วยโปรแกรม Adobe Photoshop CS3 ที่มา http://www.skr.ac.th/~...
สร้างสรรค์ผลงานด้วยโปรแกรม  Adobe  Photoshop CS3 ที่มา http://www.skr.ac.th/~...สร้างสรรค์ผลงานด้วยโปรแกรม  Adobe  Photoshop CS3 ที่มา http://www.skr.ac.th/~...
สร้างสรรค์ผลงานด้วยโปรแกรม Adobe Photoshop CS3 ที่มา http://www.skr.ac.th/~...เชาวลักษณ์ ชาวงษ์
 
การใช้งานโปรแกรม R เบื้องต้น
การใช้งานโปรแกรม R เบื้องต้นการใช้งานโปรแกรม R เบื้องต้น
การใช้งานโปรแกรม R เบื้องต้นKanda Runapongsa Saikaew
 
Business Computer Project 4
Business Computer Project 4Business Computer Project 4
Business Computer Project 4Warawut
 
ระบบหมุนเวียน
ระบบหมุนเวียนระบบหมุนเวียน
ระบบหมุนเวียนThanyamon Chat.
 
ระบบน้ำเหลืองกับภูมิคุ้มกัน
ระบบน้ำเหลืองกับภูมิคุ้มกันระบบน้ำเหลืองกับภูมิคุ้มกัน
ระบบน้ำเหลืองกับภูมิคุ้มกันThanyamon Chat.
 
การขับถ่ายของสัตว์
การขับถ่ายของสัตว์การขับถ่ายของสัตว์
การขับถ่ายของสัตว์Thanyamon Chat.
 
ระบบน้ำเหลืองกับภูมิคุ้มกัน(Hant out)
ระบบน้ำเหลืองกับภูมิคุ้มกัน(Hant out)ระบบน้ำเหลืองกับภูมิคุ้มกัน(Hant out)
ระบบน้ำเหลืองกับภูมิคุ้มกัน(Hant out)Thanyamon Chat.
 
Tomasulo Algorithm
Tomasulo AlgorithmTomasulo Algorithm
Tomasulo AlgorithmFarwa Ansari
 
ระบบหายใจกับการรักษาดุลยภาพของร่างกาย(มนุษย์)
ระบบหายใจกับการรักษาดุลยภาพของร่างกาย(มนุษย์)ระบบหายใจกับการรักษาดุลยภาพของร่างกาย(มนุษย์)
ระบบหายใจกับการรักษาดุลยภาพของร่างกาย(มนุษย์)Thanyamon Chat.
 
สุดยอดความสำเร็จขององค์กร
สุดยอดความสำเร็จขององค์กรสุดยอดความสำเร็จขององค์กร
สุดยอดความสำเร็จขององค์กรDrDanai Thienphut
 
07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุน07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุนDoc Edu
 
01 form-mdi
 01 form-mdi 01 form-mdi
01 form-mdiWarawut
 

Mais procurados (17)

1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลง1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลง
 
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Elseใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
 
Index with Word 2007
Index with Word 2007Index with Word 2007
Index with Word 2007
 
ธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิตธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิต
 
สร้างสรรค์ผลงานด้วยโปรแกรม Adobe Photoshop CS3 ที่มา http://www.skr.ac.th/~...
สร้างสรรค์ผลงานด้วยโปรแกรม  Adobe  Photoshop CS3 ที่มา http://www.skr.ac.th/~...สร้างสรรค์ผลงานด้วยโปรแกรม  Adobe  Photoshop CS3 ที่มา http://www.skr.ac.th/~...
สร้างสรรค์ผลงานด้วยโปรแกรม Adobe Photoshop CS3 ที่มา http://www.skr.ac.th/~...
 
การใช้งานโปรแกรม R เบื้องต้น
การใช้งานโปรแกรม R เบื้องต้นการใช้งานโปรแกรม R เบื้องต้น
การใช้งานโปรแกรม R เบื้องต้น
 
Business Computer Project 4
Business Computer Project 4Business Computer Project 4
Business Computer Project 4
 
ระบบหมุนเวียน
ระบบหมุนเวียนระบบหมุนเวียน
ระบบหมุนเวียน
 
ระบบน้ำเหลืองกับภูมิคุ้มกัน
ระบบน้ำเหลืองกับภูมิคุ้มกันระบบน้ำเหลืองกับภูมิคุ้มกัน
ระบบน้ำเหลืองกับภูมิคุ้มกัน
 
การขับถ่ายของสัตว์
การขับถ่ายของสัตว์การขับถ่ายของสัตว์
การขับถ่ายของสัตว์
 
ระบบน้ำเหลืองกับภูมิคุ้มกัน(Hant out)
ระบบน้ำเหลืองกับภูมิคุ้มกัน(Hant out)ระบบน้ำเหลืองกับภูมิคุ้มกัน(Hant out)
ระบบน้ำเหลืองกับภูมิคุ้มกัน(Hant out)
 
PUSH-- a Dataflow Shell
PUSH-- a Dataflow ShellPUSH-- a Dataflow Shell
PUSH-- a Dataflow Shell
 
Tomasulo Algorithm
Tomasulo AlgorithmTomasulo Algorithm
Tomasulo Algorithm
 
ระบบหายใจกับการรักษาดุลยภาพของร่างกาย(มนุษย์)
ระบบหายใจกับการรักษาดุลยภาพของร่างกาย(มนุษย์)ระบบหายใจกับการรักษาดุลยภาพของร่างกาย(มนุษย์)
ระบบหายใจกับการรักษาดุลยภาพของร่างกาย(มนุษย์)
 
สุดยอดความสำเร็จขององค์กร
สุดยอดความสำเร็จขององค์กรสุดยอดความสำเร็จขององค์กร
สุดยอดความสำเร็จขององค์กร
 
07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุน07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุน
 
01 form-mdi
 01 form-mdi 01 form-mdi
01 form-mdi
 

Semelhante a โครงสร้างภาษาซี2

C Language Program
C Language ProgramC Language Program
C Language ProgramWarawut
 
พื้นฐานการออกแบบโปรแกรม
พื้นฐานการออกแบบโปรแกรมพื้นฐานการออกแบบโปรแกรม
พื้นฐานการออกแบบโปรแกรมWarawut
 
ใบความรู้เรื่องคำสั่ง Printf scanf
ใบความรู้เรื่องคำสั่ง Printf scanfใบความรู้เรื่องคำสั่ง Printf scanf
ใบความรู้เรื่องคำสั่ง Printf scanfธงชัย พาศรี
 
การจัดการเรียนการสอน
การจัดการเรียนการสอนการจัดการเรียนการสอน
การจัดการเรียนการสอนAnanpha Dear
 
P&MSP2012 - Version Control Systems
P&MSP2012 - Version Control SystemsP&MSP2012 - Version Control Systems
P&MSP2012 - Version Control SystemsDaniele Dell'Aglio
 
SearchDemo
 SearchDemo SearchDemo
SearchDemoWarawut
 
Login Administrator PrestaShop
Login Administrator PrestaShopLogin Administrator PrestaShop
Login Administrator PrestaShopWarawut
 
การใช้เครื่องมือ (Tools) พื้นฐานในโปรแกรม Adobe Photoshop CS3 ที่มา http://...
การใช้เครื่องมือ (Tools)  พื้นฐานในโปรแกรม Adobe  Photoshop CS3 ที่มา http://...การใช้เครื่องมือ (Tools)  พื้นฐานในโปรแกรม Adobe  Photoshop CS3 ที่มา http://...
การใช้เครื่องมือ (Tools) พื้นฐานในโปรแกรม Adobe Photoshop CS3 ที่มา http://...เชาวลักษณ์ ชาวงษ์
 
กลุ่ม3
กลุ่ม3กลุ่ม3
กลุ่ม3bannoi001
 
Display Table Demo
Display Table DemoDisplay Table Demo
Display Table DemoWarawut
 
Upload Patch Firewall Sp3351
Upload Patch Firewall Sp3351Upload Patch Firewall Sp3351
Upload Patch Firewall Sp3351guest134db05
 

Semelhante a โครงสร้างภาษาซี2 (13)

C Language Program
C Language ProgramC Language Program
C Language Program
 
พื้นฐานการออกแบบโปรแกรม
พื้นฐานการออกแบบโปรแกรมพื้นฐานการออกแบบโปรแกรม
พื้นฐานการออกแบบโปรแกรม
 
ใบความรู้เรื่องคำสั่ง Printf scanf
ใบความรู้เรื่องคำสั่ง Printf scanfใบความรู้เรื่องคำสั่ง Printf scanf
ใบความรู้เรื่องคำสั่ง Printf scanf
 
Brief create list-km090354
Brief create list-km090354Brief create list-km090354
Brief create list-km090354
 
การจัดการเรียนการสอน
การจัดการเรียนการสอนการจัดการเรียนการสอน
การจัดการเรียนการสอน
 
P&MSP2012 - Version Control Systems
P&MSP2012 - Version Control SystemsP&MSP2012 - Version Control Systems
P&MSP2012 - Version Control Systems
 
SearchDemo
 SearchDemo SearchDemo
SearchDemo
 
Login Administrator PrestaShop
Login Administrator PrestaShopLogin Administrator PrestaShop
Login Administrator PrestaShop
 
การใช้เครื่องมือ (Tools) พื้นฐานในโปรแกรม Adobe Photoshop CS3 ที่มา http://...
การใช้เครื่องมือ (Tools)  พื้นฐานในโปรแกรม Adobe  Photoshop CS3 ที่มา http://...การใช้เครื่องมือ (Tools)  พื้นฐานในโปรแกรม Adobe  Photoshop CS3 ที่มา http://...
การใช้เครื่องมือ (Tools) พื้นฐานในโปรแกรม Adobe Photoshop CS3 ที่มา http://...
 
กลุ่ม3
กลุ่ม3กลุ่ม3
กลุ่ม3
 
Serial controldoc190154
Serial controldoc190154Serial controldoc190154
Serial controldoc190154
 
Display Table Demo
Display Table DemoDisplay Table Demo
Display Table Demo
 
Upload Patch Firewall Sp3351
Upload Patch Firewall Sp3351Upload Patch Firewall Sp3351
Upload Patch Firewall Sp3351
 

Mais de ธงชัย พาศรี

ใบงานเรื่องการคอมไพล์โปรแกรม
ใบงานเรื่องการคอมไพล์โปรแกรมใบงานเรื่องการคอมไพล์โปรแกรม
ใบงานเรื่องการคอมไพล์โปรแกรมธงชัย พาศรี
 
เขียนโปรแกรมใช้คำสั่ง Printf scanf
เขียนโปรแกรมใช้คำสั่ง  Printf scanfเขียนโปรแกรมใช้คำสั่ง  Printf scanf
เขียนโปรแกรมใช้คำสั่ง Printf scanfธงชัย พาศรี
 
การวิเคราะห์ปัญหา(080653)
การวิเคราะห์ปัญหา(080653)การวิเคราะห์ปัญหา(080653)
การวิเคราะห์ปัญหา(080653)ธงชัย พาศรี
 
การเขียนผังงานแบบทำซ้ำ (080753)
การเขียนผังงานแบบทำซ้ำ  (080753)การเขียนผังงานแบบทำซ้ำ  (080753)
การเขียนผังงานแบบทำซ้ำ (080753)ธงชัย พาศรี
 
การเขียนผังงานแบบทางเลือก (050753)
การเขียนผังงานแบบทางเลือก  (050753)การเขียนผังงานแบบทางเลือก  (050753)
การเขียนผังงานแบบทางเลือก (050753)ธงชัย พาศรี
 
การเขียนผังงานแบบทางเลือก (010753)
การเขียนผังงานแบบทางเลือก  (010753)การเขียนผังงานแบบทางเลือก  (010753)
การเขียนผังงานแบบทางเลือก (010753)ธงชัย พาศรี
 
การเขียนผังงานแบบทางเลือก (050753)
การเขียนผังงานแบบทางเลือก  (050753)การเขียนผังงานแบบทางเลือก  (050753)
การเขียนผังงานแบบทางเลือก (050753)ธงชัย พาศรี
 
การเขียนผังงานแบบทางเลือก (010753)
การเขียนผังงานแบบทางเลือก  (010753)การเขียนผังงานแบบทางเลือก  (010753)
การเขียนผังงานแบบทางเลือก (010753)ธงชัย พาศรี
 

Mais de ธงชัย พาศรี (11)

ใบงานเรื่องการคอมไพล์โปรแกรม
ใบงานเรื่องการคอมไพล์โปรแกรมใบงานเรื่องการคอมไพล์โปรแกรม
ใบงานเรื่องการคอมไพล์โปรแกรม
 
เขียนโปรแกรมใช้คำสั่ง Printf scanf
เขียนโปรแกรมใช้คำสั่ง  Printf scanfเขียนโปรแกรมใช้คำสั่ง  Printf scanf
เขียนโปรแกรมใช้คำสั่ง Printf scanf
 
การวิเคราะห์ปัญหา(080653)
การวิเคราะห์ปัญหา(080653)การวิเคราะห์ปัญหา(080653)
การวิเคราะห์ปัญหา(080653)
 
การเขียนผังงานแบบทำซ้ำ (080753)
การเขียนผังงานแบบทำซ้ำ  (080753)การเขียนผังงานแบบทำซ้ำ  (080753)
การเขียนผังงานแบบทำซ้ำ (080753)
 
การเขียนผังงานแบบทางเลือก (050753)
การเขียนผังงานแบบทางเลือก  (050753)การเขียนผังงานแบบทางเลือก  (050753)
การเขียนผังงานแบบทางเลือก (050753)
 
การเขียนผังงานแบบทางเลือก (010753)
การเขียนผังงานแบบทางเลือก  (010753)การเขียนผังงานแบบทางเลือก  (010753)
การเขียนผังงานแบบทางเลือก (010753)
 
การเขียนผังงาน (290653)
การเขียนผังงาน (290653)การเขียนผังงาน (290653)
การเขียนผังงาน (290653)
 
การเขียนผังงาน (280653)
การเขียนผังงาน (280653)การเขียนผังงาน (280653)
การเขียนผังงาน (280653)
 
การเขียนผังงานแบบทางเลือก (050753)
การเขียนผังงานแบบทางเลือก  (050753)การเขียนผังงานแบบทางเลือก  (050753)
การเขียนผังงานแบบทางเลือก (050753)
 
การเขียนผังงานแบบทางเลือก (010753)
การเขียนผังงานแบบทางเลือก  (010753)การเขียนผังงานแบบทางเลือก  (010753)
การเขียนผังงานแบบทางเลือก (010753)
 
การเขียนผังงาน (290653)
การเขียนผังงาน (290653)การเขียนผังงาน (290653)
การเขียนผังงาน (290653)
 

Último

Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 

Último (20)

Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 

โครงสร้างภาษาซี2

  • 1. C
  • 2. Outline • C programming • • F • F • Flowchart ( F )
  • 3. Programming language • F F F • FF F (machine language) F 2 – F , , F
  • 4. Programming language • - FF F F F F (F Compiler, Interpreter) • F F
  • 5. C Programming • F – F text editor F source code F – source file F compile F C compiler • F F F F source code compile F F F • F F object file ( )
  • 6. C Programming – object file link library ( F object code) F F execute file – execute file F F (run) F F F compile
  • 7. C Programming – tools text editor + compiler + linker F F F F ( F F ) Turbo C compiler
  • 8. Text editor create Error Source file (*.c) C compiler Object file (*.obj) Library (header file , *.h) C linker Execute file (*.exe)
  • 9. • Bitwise Control F F (bit) F F – F F F F • Pointer Implementation (pointer) – F F F
  • 10. • Case Sensitive F F – var1 Var1 – main() Main() F • F F ; (semicolon) F ; F – F F F F F F
  • 11. • Structure language F F F (Control structure) F • Procedural language module ( F F F F ) F F function
  • 12. F C Preprocessor Header #include <stdio.h> Comment int main() { Function /* display message */ Statement printf(“Hello World”); return 0; }
  • 13. F C 1. F (Header) • F F F F F • F F • F F 2 F 1.1 Preprocessor statement 1.2 Declaration statement
  • 14. F C 1.1 Preprocessor statement • F F F • F F # • F F 2 • #define #include
  • 15. F C 1.1.1 #include • F F F F (Library) • header file (*.h) F stdio.h, string.h • F F ( F ) / F F printf() F F F ( F )
  • 16. F C 1.1.1 #include • printf() ( F ) F F standard input output • F #include <stdio.h> • F F F F <>
  • 17. F C 1.1.2 #define • F F F F F F #define pi 3.14159 - F idenfier pi F F 3.14159 #define pi 3.14159 - F F string 3.14156 F F • preprocessor F F ; F
  • 18. F C 1.2 Declaration statement • F (GLOBAL Variable) • F
  • 19. F C 2. F (Function) • F F F F • F F (statement) F • F F F F • F F F F F F main() F
  • 20. F C comment • F (comment) F • F F /* */ • F F F F F F • F F F F // F F F F F
  • 21. F F flowchart Symbol Meaning Terminator Symbol Process Symbol Input/Output Symbol 21
  • 22. Symbol Meaning Display /Monitor Symbol Document Symbol Decision Symbol Keyboard Symbol External Subroutine Symbol C Compiler
  • 23. Symbol Meaning Comment Symbol Flowline Symbol On-page Connector Symbol Off-page Connector Symbol
  • 24. F F flowchart • Examples: Terminator Symbol : F F F START STOP
  • 25. F F flowchart • Examples: Process Symbol : F
  • 26. F F flowchart • Examples: Input/Output Symbol : F F F
  • 27. F F flowchart • Examples: Display /Monitor Symbol : F F F F Write sum
  • 28. F F flowchart • Examples: • Document Symbol : F F F F F
  • 29. F F flowchart • Examples: Decision Symbol : F
  • 30. F F flowchart • Examples: External Subroutine Symbol : F F F C Compiler F F F
  • 31. F F flowchart • Examples: External Subroutine Symbol
  • 32. F F flowchart • Examples: Keyboard Symbol : F F F Comment Symbol : F F F
  • 33. F F flowchart • Examples: Offpage Connector Symbol : F F
  • 34. F F flowchart • Examples: Flowline Symbol : F F F F On-page Connector Symbol : F F Yes No
  • 35. F F flowchart • F 1 F F flowchart F 3 F F F F F 3
  • 36. F F flowchart • F 2 F F F F F F F F F F F (10,000 ) F F
  • 37. F F flowchart
  • 38. 1 • F 100,000 F F F FF F F 1. F F F 500,000 . 2. F F F 50,000 . • Flowchart F F F F F FF F F F F -999
  • 39. 2 • flowchart 1 F F F F A, B, C, D, F F F F F F F – F F F A F F Very Good – F F F B F F Good – F F F C F F So So – F F F D F F Poor – F F F F F F Fail ! – F F F F F Invalid !
  • 40. 3 • flowchart F 1 F F F F1 10 F F F F F F F F F F Invalid Number ! F F F F F F num F F F num 10
  • 41. 4 • FF F FF F 3 F F F F F F • F Input name : Suchada Input sex (Male / Female) : Female Input year of birth : 2500 ----------------------------- Hello Miss. Suchada you are 52 years old