Основы языка программирования C++ с применением объектно-ориентированного программирования. Чернышов М.К. - 18 стр.

UptoLike

Составители: 

1
( )
ȼɵɡɨɜ ɮɭɧɤ-
ɰɢɢ
ɮɭɧɤɰɢɹ (ɚɪɝɭɦɟɧɬɵ)
2
++
Ⱥɜɬɨɭɜɟɥɢ-
ɱɟɧɢɟ
++L-ɡɧɚɱɟɧɢɟ
ɢɥɢ
L-ɡɧɚɱɟɧɢɟ++
2
--
Ⱥɜɬɨɭɦɟɧɶ-
ɲɟɧɢɟ
--L-ɡɧɚɱɟɧɢɟ
ɢɥɢ
L-ɡɧɚɱɟɧɢɟ--
2
~
Ȼɢɬɨɜɨɟ ɢɧ-
ɜɟɪɬɢɪɨɜɚ-
ɧɢɟ
~ɰɟɥɨɟ_ɜɵɪɚɠɟɧɢɟ
2
!
Ʌɨɝɢɱɟɫɤɨɟ
ɨɬɪɢɰɚɧɢɟ
!ɜɵɪɚɠɟɧɢɟ
2
-
Ɉɞɧɨɦɟɫɬ-
ɧɵɣ ɦɢɧɭɫ
-ɜɵɪɚɠɟɧɢɟ
2
+
Ɉɞɧɨɦɟɫɬ-
ɧɵɣ ɩɥɸɫ
+ɜɵɪɚɠɟɧɢɟ
2
&
ɉɨɥɭɱɟɧɢɟ
ɚɞɪɟɫɚ
&L-ɡɧɚɱɟɧɢɟ
2
*
Ɋɚɡɵɦɟɧɨɜɚ-
ɧɢɟ ɭɤɚɡɚɬɟ-
ɥɹ
*ɭɤɚɡɚɬɟɥɶ
2
new
ȼɵɞɟɥɟɧɢɟ
ɞɢɧɚɦɢɱɟ-
ɫɤɨɣ ɩɚɦɹɬɢ
new ɬɢɩ_ɞɚɧɧɨɝɨ
2
delete
Ɉɫɜɨɛɨɠɞɟ-
ɧɢɟ ɩɚɦɹɬɢ
delete ɭɤɚɡɚɬɟɥɶ
2
delete []
Ɉɫɜɨɛɨɠɞɟ-
ɧɢɟ ɩɚɦɹɬɢ
ɞɥɹ ɦɚɫɫɢɜɚ
delete [] ɭɤɚɡɚɬɟɥɶ
18
                ȼɵɡɨɜ ɮɭɧɤ-    ɮɭɧɤɰɢɹ (ɚɪɝɭɦɟɧɬɵ)
1   ( )
                ɰɢɢ

                               ++L-ɡɧɚɱɟɧɢɟ
                Ⱥɜɬɨɭɜɟɥɢ-
2   ++                         ɢɥɢ
                ɱɟɧɢɟ          L-ɡɧɚɱɟɧɢɟ++

                               --L-ɡɧɚɱɟɧɢɟ
                Ⱥɜɬɨɭɦɟɧɶ-
2   --                         ɢɥɢ
                ɲɟɧɢɟ          L-ɡɧɚɱɟɧɢɟ--

                Ȼɢɬɨɜɨɟ ɢɧ-
2   ~           ɜɟɪɬɢɪɨɜɚ-     ~ɰɟɥɨɟ_ɜɵɪɚɠɟɧɢɟ
                ɧɢɟ

                Ʌɨɝɢɱɟɫɤɨɟ
2   !                          !ɜɵɪɚɠɟɧɢɟ
                ɨɬɪɢɰɚɧɢɟ

                Ɉɞɧɨɦɟɫɬ-
2   -                          -ɜɵɪɚɠɟɧɢɟ
                ɧɵɣ ɦɢɧɭɫ

                Ɉɞɧɨɦɟɫɬ-
2   +                          +ɜɵɪɚɠɟɧɢɟ
                ɧɵɣ ɩɥɸɫ

                ɉɨɥɭɱɟɧɢɟ
2   &                          &L-ɡɧɚɱɟɧɢɟ
                ɚɞɪɟɫɚ

                Ɋɚɡɵɦɟɧɨɜɚ-
2   *           ɧɢɟ ɭɤɚɡɚɬɟ-   *ɭɤɚɡɚɬɟɥɶ
                ɥɹ

                ȼɵɞɟɥɟɧɢɟ
2   new         ɞɢɧɚɦɢɱɟ-      new ɬɢɩ_ɞɚɧɧɨɝɨ
                ɫɤɨɣ ɩɚɦɹɬɢ

                Ɉɫɜɨɛɨɠɞɟ-     delete ɭɤɚɡɚɬɟɥɶ
2   delete
                ɧɢɟ ɩɚɦɹɬɢ

                Ɉɫɜɨɛɨɠɞɟ-
2   delete []   ɧɢɟ ɩɚɦɹɬɢ     delete [] ɭɤɚɡɚɬɟɥɶ
                ɞɥɹ ɦɚɫɫɢɜɚ


                               18