C?????? - PowerPoint PPT Presentation

1 / 19
About This Presentation
Title:

C??????

Description:

Title: 1 Author: lfx Keywords: Last modified by: gxl Created Date: 9/8/2005 12:12:49 AM Document presentation format – PowerPoint PPT presentation

Number of Views:17
Avg rating:3.0/5.0
Slides: 20
Provided by: lfx7
Category:
Tags:

less

Transcript and Presenter's Notes

Title: C??????


1
C??????
??? C????
????? 2014?9?7????
2
????
  • 1.1 C?????????
  • 1.2 C?????
  • 1.3 ???C??????
  • 1.4 ??C????????

3
1.1 C?????????
  • C????????????????
  • C????B????????????
  • B (BCPL)???1970????????????, ?????????UNIX????,?PD
    P 7????????,????,??????,??????
  • 1973???????D.M.Ritchie ?B??????????C??,?B????,????
    ??????????UNIX,(?UNIX?5?),???????????

4
1.1C?????????
  • 1975?UNIX?6???,C?????????
  • 1977???????C?????? ,???UNIX????????
    ,C???????,????????
  • 1978????????The C Programming Language? Brian
    W.Kernighan?Dennis M.Ritchie ??,?????C?
  • ??,C???????????????????,????UNIX?PDP,????,????????
    ????????

5
1.1C?????????
  • 1983?,?????????(ANSI)??C???????C??????,???????ANSI
    C ,???C????????
  • 1988?K R?? ANSI C??????The C Programming
    Language?
  • 1987?,ANSI??????87 ANSI C?
  • 1990?,??????????87 ANSI C?ISO C
    ???(ISO98991990)?
  • 1994?,ISO????C?????
  • ?????C??????????ANSI C?????????

6
1.2 C?????
(1)???????,???????? 32?????9?????,??????? (2)?????
?34???? ? (3)??????,?????????????? (4)??????????
,?????????????? (5)????????,?????????
7
1.2 C?????
(6)??????????,??????,?????????????,???????????????
???????? ? (7)???????,????????????????????????10-
20? (8)???????(??????)???????????????????????????
?
8
1.3 ???C??????
?1.1 ?????? include ltstdio.hgt void main()
printf ("This is a C program.\n")
???? This is a C program.
9
1.3 ???C??????
?1.2 ????? include ltstdio.hgt void main (
) int a,b,sum
a123 b456 sumab
printf ("sum is d\n", sum)
???? Sum is 579
10
1.3 ???C??????
?1.3 ???????? include ltstdio.hgt void main (
) int max(int x,int y) int a, b, c
scanf ("d,d",a,b) cmax (a,b)
printf ("maxd",c)
int max(int x,int y) int z if (xgty) zx
else zy return (z)
???? 8,5? max8
11
1.4 ??C????????
  • 1.4.1 ??C?????
  • ??????????
  • ????????
  • ??????
  • ??????

12
1.4 ??C????????
  • 1.4.2????C?????
  • ????????C??????????(IDE)?????????????C???????
  • ????Turbo C 2.0?Turbo C 3.0?Visual C??
  • Turbo C 3.0???????,??????????????,?????DOS?????
    ???,???????Turbo C 3.0 ?????DOS????tc.exe??????,
    ?????????
  • Visual C????Visual C?C???????

13
  • ?Turbo C 3.0???
  • ?Turbo C 3.0?????????????
  • ??
  • ??C???????TC3.0?????
  • ??Turbo C 3.0????
  • ??DOS???
  • C\TC3.0gttc ??

14
? ?Windows??? ???????tc.exe,??????
???11????? File Edit Search Run
Compile Debug Project Options Window
Help?
15
(2) ????? ????File??? ?New,
????File?Open(???File ???????Open?,??????
???
16
???(EDIT) ????????????????,????????????????,
?????????
17
?????(EDIT) ????????????????,????????????????,???
??????
18
(3) ???????? ??Compile(?AltF9)?????????
c1.cpp???,??1???(error) ,0???(warming)?
19
(4) ?????????
????Compile ?Link ,???????,????????.exe???????

(5) ???? ???Run ?Run( ??CtrlF9
?)? (6) ??Turbo C 3.0?? ??File?Quit ?
Write a Comment
User Comments (0)
About PowerShow.com