Title: 5-1?????????
1? ? ? ?
- 5-1 ?????????
- 5-2 C/C????
- 5-3 Java????
- 5-4 Flash?ActionScript
25-1 ?????????
- Visual C?Borland C Builder?Borland
JBuilder?,????????????????????(??IDE)? - ?????????????????????????????????????????????????
????????????????????
3- ???????????,???????????????,??????Windows?????????
????Linux???,???????????????????????,?????????????
????? ?
4- ?????????????????????????,???????????,C/C???????
???,????????????????????,??DirectX???Java??,??????
?????,????????????????C/C?????
55-2 C/C????
- ????
- C/C????????????,??????????????,?????????????????
????,??if?else?for?while??? ?
6include ltstdio.hgt int main( void ) int
int_num printf( "??????? " ) scanf(
"d", int_num ) if ( int_num2 )
puts( "????????" ) else puts(
"????????" ) return 0
7- ????
- ??C/C???????????????,??????????????,????????????
,????C/C?????,???????????? ?
8- ???????
- C/C???????,C?????????(pointer)??????????????????
????,?????????????????,??????????????????,????????
??,C??????????
9- ????
- C/C???????????????,??????????Visual
C?Borland?C Builder,????????Dec
C?KDevelop,?????????C???C,?????????????,??????
,?????????????????????
10 11Visual Basic????
- Visual Basic?????????????,??????????????,?????????
??????????Visual Basic?????,?????Visual
Basic?????????????
12Visual Basic????
13- ????
- Visual Basic?????????,????????????????????,??Visua
l Basic?Windows????????????,?????????????Windows??
????????
14- Visual Basic??????????(??),???????????????????????
?? - Visual Basic?????????????????,????????????????
15- ???????
- Visual Basic?????,???????Basic???????????,Visual
Basic??C/C???????????,???????????? - ?? Visual Basic?????????C/C??????????
16Private Sub Form_KeyDown(KeyCode As Integer,
Shift As Integer) ' ?????????????
Form1.PaintPicture Picture1, 0, 10, w, h, _
Xc - w / 2, 0, w, h, vbSrcCopy If
KeyCode 39 Then ' ??????? Xc Xc 10
ElseIf KeyCode 37 Then ' ??????? Xc
Xc - 10 End If ' ?????????????
If Xc lt w / 2 Then Xc w / 2 ElseIf
Xc gt 1600 - w / 2 Then Xc 1600 - w / 2
End If End Sub
17Visual Basic???????????
18- ????
- Visual Basic????????????????,????????????????????,
?Visual Basic?????????????????,???????????????????
?
195-3 Java????
- ?????????,??Java?????????????,????Java????????????
??????,????????????????
20 21- ????
- Java??????????,???Java??????????????,?????????????
,??????????????????????(byte code)??Java?????(Java
Runtime Environment)????
22Java???????
23 24- ?????Java??????,????Applet???,?????????????????,??
???
25- ????
- Java???????????????,?Java?????????????????????????
?,??????????????,???????????????????
26- ???????
- Java????C?????????,?????????C/C????????????Jav
a????,?Java???C?????????????,???????,???????????
??????????,??????C/C??Java??????,???????????????
???
27????Java????????
public static void main(String args)
ex1103 frm new ex1103() private void
check() for(int i 0 i lt p.length i)
if(pi.px lt 0 pi.px gt 400)
pi.dx -pi.dx if(pi.py lt
10 pi.py gt 300) pi.dy
-pi.dy
28- ????
- ?Java?????????????,???????Visual
J?JBuilder,??????forte?NetBeans?,??????Java?????
????????,??????????????????????
295-4 Flash?ActionScript
- Flash????????????????,????????????????????,?Flash?
????????,??????????????,????????????????
30?????????????
Flash?????????
31- Flash??????????,?????????????????????,????????????
??Action Script,Action Script?????????????,???????
???,??????????????????,?????Flash
MX????????????,??Action Script???????????????