Lesson 3. First step-news section
|
0
|
1
|
2
|
3
|
4
|
5
|
6
|
week
|
year
|
|
|
|
01
|
02
|
03
|
04
|
18
|
2003
|
05
|
06
|
07
|
08
|
09
|
10
|
11
|
19
|
2003
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
20
|
2003
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
21
|
2003
|
26
|
27
|
28
|
29
|
30
|
|
|
22
|
2003
|
· | file auto.p may be placed not only in root directory, but also in any other directory (but in this case, functions contained in it will be accessible only within the directory it is in);
|
· | variable-hash is an array used to associate some objects with other ones. In our case, objects were strings;
|
· | static method calendar creates a table with calendar for the current month;
|
· | loop for allows repeating some actions specified number of times.
|
· | along with methods of objects created with constructors of a class, there exist static methods. You can access these methods directly without first creating an object;
|
· | within loop for, we can refer to the counter as to a variable with specified name and get its current value.
|
Copyright © 19972021 Art. Lebedev Studio | http://www.artlebedev.com | Last updated: 05.08.2005 |