C語言 第一章 C語言簡介

  • View
    1.942

  • Download
    1

Embed Size (px)

Transcript

  • 1-1 C

    1-2 C

    1-1-1 C

    1-2-1 1-2-2 1-2-3

    1-3-1 1-3-2 1-3-3

    1-4

    1-3 C

    1-1-2 C 1-1-3 C

    C

  • 1-1-1 C 1-1 C

    P 1-2

    1972 Dennis Ritchie B

    BCLP B C Dennis Ritchie C DEC PDP-11 Unix

    C Unix

    C

  • 1-1-2 C (1) 1-1 C

    P 1-4

    ANSI C Portable

    C

    Java Visual Basic Pascal C

  • 1-1-2 C (2) 1-1 C

    P 1-4

    C

    C C++ Java PHP C# C

  • 1-1-3 C 1-1 C

    P 1-5

    IDE Integrated Development Environment C

    ,

    C *.obj

    C *.lib linker *.exe

  • 1-2 C

    1- 2 C

    P 1-6

  • 1-2-1

    01 #include 02 #include 0304 int main(void)05 {06 printf("C \n");/* printf()

    */ 07 08 system("pause");09 return 0;10 }

    1- 2 C

    P 1-7

    / Ch01_01 .c

  • 1-2-2

    1- 2 C

    P 1-7

    /

    Compiling Done

  • 1-2-2 1- 2 C

    P 1-7

    /

  • 1-2-3 1- 2 C

    P 1-8

    CH01_01.c

  • 1-2-3 1- 2 C

    P 1-8

    1~2 #include

    4 C main() main() {} void

    int

    5~10

  • 1-2-3 1- 2 C

    P 1-9

    6 printf() C /n /* */

    8 Windows

    system() pause " "

    9 int return 0 ANSI

    C return 0;

  • 1-3-1

    01 int main( )02 {03 1;04 2;05 .06 . 07 }

    C

    C

    1- 3 C

    P 1-10

    main()

    main()

  • 1-3-1

    01 int main( )02 {03 }

    P 1-10

    1- 3 C

    02 { main() 07 } main()

    C

  • 1-3-1

    P 1-11

    1- 3 C

    C

  • 1-3-2

    Return0; /* */printf ( "C \n"); /* */printf("C !!\n"); system("pause"); return 0; /**/print f("C !!\n"); /* */

    P 1-12

    1- 3 C

    (token) tab

  • 1-3-2

    P 1-13

    1- 3 C

    if else

  • 1-3-3

    /* C */

    P 1-13

    1- 3 C

    C /* */

  • 1-4

    P 1-8

    1-4

    CH01_02.c

    Slide 1Slide 2Slide 3Slide 4Slide 5Slide 6Slide 7Slide 8Slide 9Slide 10Slide 11Slide 12Slide 13Slide 14Slide 15Slide 16Slide 17Slide 18Slide 19