Программирование на C/C++


424 60 17MB

Russian Pages 263

Report DMCA / Copyright

DOWNLOAD PDF FILE

Recommend Papers

Программирование на C/C++

  • 0 0 0
  • Like this paper and download? You can publish your own PDF file online for free in a few minutes! Sign Up
File loading please wait...
Citation preview

П

.

А , . .

.: . .

ф. А. Д. Х И А И , . . . .

C++:

к А C++ , . .

,

,

,

,

,

,

.

: , ,

, ,

, ,

,

, . Borland C++ Builder.

. . 3 1. 1.1. 1.2. 1.3. 2. Т 2.1. 2.2. 2.3. 2.4. 2.5. 2.6. 3. 3.1. 3.2. 3.3. 3.4. 3.5. 4. 4.1. 4.2. 4.3. 4.4. 4.5. 4.6. 4.7. 4.8. 5. Ф

I. C++

,

7 7 8 10 15 15 17 21 22 25 27 31 31 33 36 36 38 41 41 42 42 43 46 47 47 50 53

5.1. 5.2. 5.3. 5.4. 5.5. 5.6. 6. 6.1. 6.2. 6.3. 7. И 7.1. 7.2. 7.3. 7.4.

53 56 57 60 62 63 67 67 70 72 77 77 77 79 79 II.

8. 8.1. 8.2. 8.3. Э 9. К 9.1. 9.2. 9.3. 9.4. 10. 10.1. 10.2. 10.3. 11. 11.1. 11.2. 11.3. 11.4. 12. 12.1. 12.2. 12.3. 12.4. 12.5. 12.6. 13. 13.1. 13.2.

-

-

-

83 83 87 92 95 95 97 99 101 105 105 107 110 115 115 117 118 130 :135 135 136 142 147 150 151 153 153 155

13.3. 13.4. 13.5. 14. Ш 14.1. 14.2. 14.3. 15. 15.1. 15.2 15.3. 15.4. 16. 16.1. 16.2. 16.3. 16.4.

stdio

C++

Borland C++ Builder

К

#define 77 #else 80 #endif 80 #if 79 #ifdef 80 #ifndef 80 #include 79 #undef 77 & 42 * 43 -> 89 . 89 :: 188 > 142, 153 A ASCIIauto 27

15 B

badbit 150 before() 200

160 163 165 177 177 180 181 187 187 191 198 203 207 207 209 214 218 228 228 243 249

bool 23 Borland C++ Builder 207 break 32, 38 buffer 137 C catch 192 cerr 138 cin 138 class 96, 110 clog 138 const 22, 26 const_cast 204 continue 42 cout 138 D delete 48, 52, 73 DETECT 113 do — while 35 double 25 dynamic_cast 203 E endl 149 enum 22, 27 eofbit 150 exception handling 191 extern 27 F failbit 150 flags(0) 143 float 24 flush 149 for 34 fprintf() 173 fscanf() 173 fseek() 172 fstream 139 G gcount() 163 get() 160, 161, 163 getline() 163 gets() 171 goodbit 150 goto 42 I

IDE 208 if ...else 31 ifstream 139 initgraph 65, 113 inline 61 iomanip.h 148 iostream.h 135, 138, 148 istrstream 163 L long double 25 M main() 53 MFC 210 N namespace 187, 189 new 48, 51, 73 O ofstream 139 operator 119 ostrstream 163 OWL 210 P printf() 166, 168 private 95, 105 protected 95, 105 public 95, 105 pure 132 put() 160 puts() 170 R rand()%2 201 read() 160, 163 reference 43 register 27 reinterpret_cast 204 return 53 RTTI 198 S scanf() 166, 167, 169 setf() 144, 145 signed 24 sizeof 20 sstream.h 163 static 27

std 189 stdaux 166 stderr 166 stdin 166 stdio 165 stdio.h 136 stdout 166 stdprn 166 STL 181 stream 136 strstrea.h 163 strstream 163 struct 96, 110 switch 32 T TComboBox 218 TComponent 213 template 177 terminate() 192 TGraphicControl 213 this 91 throw 192, 195 tie() 151 TListBox 218 TObject 212 TPersistent 212 TRadioButton 218 try 192 TWinControl 213 type_info 199 typeid 199, 200 typeinfo 199 typename 177 TControl 213 U union 96 unsetf() 145 unsigned 24 using 189 V VCL 209, 210 virtual 90, 132 void 22, 53, 55 W

whence 172 while 34 write() 160 A 15 54 209 137 141 160 168 160 151 161, 169, 175

155 173 50 Standard 217 60 27, 29 32 89 17

113 84 20 91, 100, 108 95 16 16 7 20 208, 214 208 208

208 208 209 208 191 194 191 191 182 15 86, 87, 90, 95 105 90 105 88 95 180 139 105 88, 105 16 221 222 11, 16 219 22 25 22, 25 23, 26 25 91, 99, 108 177 23

77 79 78 147

148 155 150 41 47 70 47, 72 72 56, 69 42 57 67 41 73 71 214 Component 216 Database 216 Edit 215 File 214 Project 215, 216 Run 216 Search 215 View 215 Workgroups 216 89,211 102, 103,108 106 10 10 10 221 7, 89 110 105 107 27, 29 95 86, 88 97 105

98 97 211 101 92 93 17 20 21 21 31 17 142 89 142 43 20 42 119, 121 20 18 120 118 119 188 ?: 32

48 217 59

22

27 28 62 23 62 28 46 28 29 89

7, 90 116 115 136 151 151 158 -

138 159 147

77 Windows 223 219 18 10 84 84 9 215 187 189 -

84 31 221 90

91, 133 90, 133 116 9 83 211 140 95 43 44 67 164

26 FILE 171 84 84 219

95 22 21, 85 85 23 198 203 22 22 22 42 56, 69 131 15 79 139 136 137 11 223 223 223 140 156 10 223 157 223 223 79

137, 162, 172 150 140 140 53 55 63 131 117 17, 54 53 64, 65 63, 64 119 119 53 177 54, 62 116 61 12, 54 60 57 12, 53 33 36 36 34 35 34 177 181

-

89 89

Э