?????????????????? ?.?. 1972 ???????????? Dennis Rittchie ????????????????? B ??? ???? BCPL PowerPoint PPT Presentation

presentation player overlay
About This Presentation
Transcript and Presenter's Notes

Title: ?????????????????? ?.?. 1972 ???????????? Dennis Rittchie ????????????????? B ??? ???? BCPL


1
???????????????????????????????
  • ??????
  • ?????????????????? ?.?. 1972 ???????????? Dennis
    Rittchie ????????????????? B ??? ???? BCPL
  • ????????????????

2
???????????????????????????????
  • ???????????????????????????????
  • ??????????????????? (source program ???? source
    code)
  • ???????????????????????????????????????(object
    program)
  • ?????????????????(library function)
  • ?????????? execute program ???????????(run)

3
???????????????????????????????
???????????????????? ????????????????????????????
??????????
4
???????????????????????????????
??????????????????????
  1. ???????????????? File-gtNew ???? ???? CtrlN
  2. ????????????? File-gt Save ???? ???? CtrlS
  3. ?????????????????
  4. ????????????????????????? ????
    F9
  5. ??????????? File -gt Open ???? CtrlO

5
???????????????????????????????
?????????????????????????????????????
6
???????????????????????????????
Preprocessor Directives
Directive ??????????(????????????) ??? include
?????????? compiler ??????????????????????????????
???? ???? include
stdio.h ??????????? stdio.h ?????????????
include program1.c
??????????? program1.c ?????????????
Directive ????????????(???????????) ??? define
??????????????????????? ??????????? define NAME
VALUE ???? define EGG 100
?????????????? EGG ????? 100
define X 105 9 ?????????????? X
????????? 105 9
7
???????????????????????????????
Declaration part ????????????????????????? ????
???????????? ???????? ?????????? global
?????????????????????????? ? ????????
?????????? ???????????????????????????????????????
????????????????????? main() ?????????????????????
????? ??????????????????? 1 ???????? ?????????????
???????????????????????????? ? ??????????????? ?
??? library ????????????????????????????????? ?
???? ? ??? ???????????? (sub function)
???????????????????????????????????????????? ?????
??????????????????????????????????
8
???????????????????????????????
??????????????????????????????????
main()
9
???????????????????????????????
?????????????????????????????? C
1. ???????? main() ?????????????????????????? ?
???????????????? ?????????????? void
main(void) ???? int main() ????? 2.
????????????????? ?????????????????????????
??????????????????????????????? 3.
????????????????????????????????????????
(semicolon) 4. ????????????????????????? ?
???????????????????????????????? (lowercase) 5.
?????????????????????????????????????????????????
(uppercase) ????? ??????? C
????????????????????????????????????? (case
sensitive)
10
???????????????????????????????
???????? Comment
/ ................. / ??????????????????????????
????? (??????? 1 ?????????) ??? compiler
?????????????????????????????????????????????????
/ / // ??????????????????????????????
???? ????????????????? // compiler
?????????????????????????????????
11
???????????????????????????????
?????????????????????
include ltstdio.hgt main()
printf("Phimai Wittaya School\n") printf("Nak
hon Ratchasima\n") getch() return 0
Write a Comment
User Comments (0)
About PowerShow.com