Îáëîæêà êíèãèÎãëàâëåíèå

Ê ÷èòàòåëþ                                                                                                    3

Ïðåäèñëîâèå                                                                                                  5

Ââåäåíèå                                                                                                        7

Ýòþä 1. ÏÅÐÂÎÅ ÇÍÀÊÎÌÑÒÂÎ

ßçûê ïðîãðàììèðîâàíèÿ QBasic                                                          10

Ñðåäà ïðîãðàììèðîâàíèÿ QB                                                              12

Âûâîä íà ýêðàí òàáëèöû Ïèôàãîðà                                                     17

Ìåòêè è íîìåðà ñòðîê                                                                           26

Óïðàâëÿþùèå êîíñòðóêöèè. Ñòðóêòóðíîå ïðîãðàììèðîâàíèå         28

Åäèíèöû èçìåðåíèÿ èíôîðìàöèè                                                       31

Ïðèíöèï óìîë÷àíèÿ                                                                              31

Ýòþä 2. ÑÀÌÀß ÏÎÏÓËßÐÍÀß ÏÐÎÃÐÀÌÌÀ.
Ðàññêàç íà÷èíàþùåãî ïðîãðàììèñòà                                                          33

Îäèí âõîä - îäèí âûõîä                                                                       41

Äèàëîãîâûé ðåæèì                                                                               42

Çíàêè ïðåïèíàíèÿ â ïðîãðàììàõ                                                         43

Ôóíêöèè                                                                                                 44

Àëãåáðàè÷åñêèå è ÷èñëîâûå âûðàæåíèÿ                                             46

Ýòþä 3. Î ÐÛÁÀÊÀÕ È ÐÛÁÊÅ. Ïåðåïèñêà ìåæäó ÷èòàòåëåì
æóðíàëà è ðåäàêòîðîì                                                                                  47

Äîñðî÷íûé âûõîä èç öèêëà                                                                  51

Ðåìàðêè, â ïðîãðàììàõ                                                                          53

Õðàíåíèå ÷èñåë                                                                                     53

×èñëîâûå ïåðåìåííûå QBasic                                                              55

Ýòþä 4. ÊÎÌÏÜÞÒÅÐÍÛÉ ÐÅÁÓÑ                                                          57

Êàê îòñåÿòü ëèøíèå ðåøåíèÿ?                                                              60

Èìÿ ïåðåìåííîé                                                                                    61

Êîâàðíûå îøèáêè                                                                                  62

Ïðåîáðàçîâàíèÿ òèïà ïåðåìåííûõ                                                      64

Ýòþä 5. «ÍÀ×ÀËÜÍÈÊ» ÏÐÎÃÐÀÌÌÛ                                                   66

Êàê óïðîñòèòü ïðîãðàììó?                                                                   75

Êîïèðîâàíèå, ïåðåíîñ è óäàëåíèå ó÷àñòêîâ òåêñòà â ñðåäå QB       76

Ïðîöåäóðû â QuickBasic                                                                        76

Ñòàòóñ ïåðåìåííîé                                                                                78

Ïåðåäà÷à àðãóìåíòîâ ïðîöåäóðàì                                                        79

Ðåêóðñèÿ                                                                                                  80

Ñòàòè÷åñêèå è äèíàìè÷åñêèå ïåðåìåííûå                                         81

GOSUB-ïîäïðîãðàììû                                                                         81

Ýòþä 6. ÒÈØÅ ÅÄÅØÜ - ÄÀËÜØÅ ÁÓÄÅØÜ.
Ðàññêàç ïðèêëàäíîãî ïðîãðàììèñòà                                                            83

Ôóíêöèÿ äâóõ ïåðåìåííûõ NOD                                                         87

Òàáëèöà äåéñòâèÿ ëîãè÷åñêèõ îïåðàöèé                                             88

Ëîãè÷åñêàÿ åäèíèöà                                                                              89

Æàðãîí ïðîãðàììèñòîâ. Õàêåðû. Ñåìåéñòâî IBM PC                       90

Ýòþä 7. ÝÂÌ ÁÐÎÑÀÅÒ ÆÐÅÁÈÉ. Ðàññêàç ïèñàòåëÿ-

Ïîïóëÿðèçàòîðà                                                                                     92

Èíäåêñû                                                                                                  97

Ñòàòóñ ìàññèâà                                                                                       98

Ðàñøèðåííûå âîçìîæíîñòè îïåðàòîðà SELECT CASE                     99

Ýòþä 8. ÒÐÎÉÍÎÉ ÂÛÈÃÐÛØ. Ðàññêàç õèìèêà                          101

Êîíñòàíòû                                                                                              106

Ïå÷àòü íà ïðèíòåðå                                                                               107

Äèñòðèáóòèâ                                                                                          107

Àëãîðèòìû ñîðòèðîâêè                                                                         108

Ñïåöèôèêàöèÿ                                                                                       112

Òàêòîâûé ãåíåðàòîð                                                                               112

Ýòþä 9. ÅÑËÈ ÁÛ ß ÐÀÁÎÒÀË ÊÀÑÑÈÐÎÌ Â ÊÈÍÎÒÅÀÒÐÅ            114

Ñïèñêè äàííûõ                                                                                      126

Ïåðèôåðèÿ                                                                                              127

Ýòþä 10. ÌÀÒÅÌÀÒÈ×ÅÑÊÈÉ ÝÒÞÄ                                                     129

Âñòðîåííûå ôóíêöèè                                                                             130

Òî÷íîñòü                                                                                                 131

×èñëîâûå îãðàíè÷åíèÿ                                                                          132

Âðåìÿ ñ÷åòà                                                                                             134

Èãðà «Ìàêñèò»                                                                                        135

Ãåíåðàòîðû ñëó÷àéíûõ ÷èñåë                                                               141

Ñïåöèôèêà Áåéñèêà                                                                               142

Çàðåçåðâèðîâàííûå èìåíà                                                                    145

Ñòðóêòóðà äàííûõ                                                                                  149

Ïîêîëåíèÿ ÝÂÌ                                                                                     150

Ýòþä 11. ÌÓÇÛÊÀ ÖÂÅÒÍÛÕ ÒÎ×ÅÊ                                                     152

Îïåðàòîðû îòñëåæèâàíèÿ ñîñòîÿíèÿ                                                  158

Íåïîñðåäñòâåííûé ðåæèì                                                                    159

Ïîðÿäîê íà÷àëüíûõ îïåðàòîðîâ                                                           159

Çàâåðøàþùèå îïåðàòîðû                                                                      160

Ìóçûêàëüíûå îïåðàòîðû QuickBasic                                                    161

Ýòþä 12. ÊÎÌÏÜÞÒÅÐ Ó×ÈÒÑß ÍÀ ÑÂÎÈÕ ÎØÈÁÊÀÕ                    162

Îáîçíà÷åíèå ñòðîêîâûõ ïåðåìåííûõ                                                  169

Äâà òèïà ñòðîêîâûõ ïåðåìåííûõ â QuickBasic                                   169

Äðóãèå ñõåìû çàïîëíåíèÿ äåðåâà èãðû. Çàäàíèå ÷èòàòåëÿì             171

×òî òàêîå àëüòåðíàòèâíûé âîïðîñ?                                                     171

Ýòþä 13. ÅÑËÈ ÁÛ ß ÐÀÁÎÒÀË ÊÀÑÑÈÐÎÌ Â ÁÀÍÊÅ ÐÀÑÑÊÀÇ
ÏÐÎÃÐÀÌÌÈÑÒÀ                                                                                       177

×òåíèå äâîè÷íûõ ÷èñåë                                                                        182

Ôóíêöèÿ LEN                                                                                         183

Óïðàâëåíèå ïðîãðàììàìè                                                                    183

Ýòþä 14. Ó×ÅÍÈÊ È ÊÎÌÏÜÞÒÅР                                                         185

Øåñòíàäöàòåðè÷íàÿ                                                                              189

Ñèñòåìà Ëîãè÷åñêèå îïåðàöèè íàä ÷èñëàìè                                      190

Êîíòðîëü çà êëàâèàòóðîé                                                                      190

Ôóíêöèÿ INKEY$                                                                                  191

Ýòþä 15. Â ÊÀÊÎÉ ÄÅÍÜ ÍÅÄÅËÈ ÐÎÄÈËÀÑÜ ÂÀØÀ

ÁÀÁÓØÊÀ?                                                                                                   195

Îïåðàöèè ñðàâíåíèÿ                                                                             205

Îøèáêè â äàòàõ è íå òîëüêî â íèõ                                                       206

Êàâû÷êè è ðóññêàÿ áóêâà «ð»                                                                209

Ýòþä 16. ÏÐÎÃÐÀÌÌÈÑÒÑÊÈÅ ÄÎÑÓÃÈ                                              210

Áûñòðûå .àëãîðèòìû                                                                             224

Ðàáîòà ÖÏÓ                                                                                           228

Êàê ïîëüçîâàòüñÿ ôëàãîì êëàâèàòóðû                                                 231

Ñòðàíèöû âèäåîïàìÿòè                                                                       231

Ýòþä 17. ÏÅÐÂÀß ÂÑÒÐÅ×À Ñ ÔÀÉËÀÌÈ                                             232

Òèïû ìàãíèòíûõ äèñêîâ                                                                       244

Êàòàëîãè                                                                                                 245

Êîìàíäû QuickBasic äëÿ ðàáîòû ñ äèñêîì                                          246

Ýòþä 18. ÁÎËÜØÀß ÒÐÅÍÈÐÎÂÊÀ. ÐÀÑÑÊÀÇ ÏÐÎÃÐÀÌÌÈÑÒÀ    247

Áàíêè äàííûõ                                                                                         255

Ýòþä 19. ÏßÒÈÌÈÍÓÒÊÈ Ñ ÊÎÌÏÜÞÒÅÐÎÌ                                     257

Ôîðìàò ôàéëà                                                                                        268

ASCII-ôàéë                                                                                            269

Ðàáîòà â DOS                                                                                         270

Ñòàíäàðòíûé ââîä-âûâîä                                                                    272

Ýòþä 20. ÓÏÐÀÆÍÅÍÈÅ ÍÀ ÐÀÇÂÈÒÈÅ ÏÀÌßÒÈ                                273

Òèïû ýêðàíà                                                                                          285

Ýòþä 21. ÑÅÌÜ «ÃÐÅÕλ ÏÐÎÃÐÀÌÌÈÑÒÀ, ÈËÈ ÁÎËÅÅ ×ÅÌ
ÍÅÔÎÐÌÀËÜÍÎÅ ÂÂÅÄÅÍÈÅ Â ÒÅÎÐÈÞ
MULTIMEDIA                    290

«Ãðåõ» âèäåíèÿ                                                                                      290

«Ãðåõ» îñÿçàíèÿ                                                                                     292

«Ãðåõ» ñëóõà                                                                                           294

«Ãðåõ» îáîíÿíèÿ                                                                                    297

«Ãðåõ» âêóñà                                                                                           302

Âûáîð ÿçûêà ïðîãðàììèðîâàíèÿ                                                         302

Êîìïüþòåðíàÿ òåðìèíîëîãèÿ                                                              308

«Ãðåõ» õîäüáû                                                                                        309

«Ãðåõ» ðå÷è                                                                                            309

ÏÐÈËÎÆÅÍÈß                                                                                             310

ÏÐÈËÎÆÅÍÈÅ 1. Ñèñòåìà ïàäàþùèõ ìåíþ
QuickBasic 4.5 è MS-DOS QBasic                                                         310

File / Ôàéë                                                                                              310

View / Ïðîñìîòð                                                                                    312

Search / Ïîèñê                                                                                        313

Run / Çàïóñê                                                                                            313

Debug / Îòëàäêà                                                                                     314

Options / Ïàðàìåòðû                                                                              315

ÏÐÈËÎÆÅÍÈÅ 2. Íàãðóçêè ôóíêöèîíàëüíûõ êëàâèø â ñðåäå QBasic 317

ÏÐÈËÎÆÅÍÈÅ 3. Ïàðàìåòðû âûçîâà QBasic                                            318

ÏÐÈËÎÆÅÍÈÅ 4. Îãðàíè÷åíèÿ QuickBasic                                               319

ÏÐÈËÎÆÅÍÈÅ 5. Ñëóæåáíûå ñëîâà, îïåðàòîðû è ôóíêöèè ÿçûêà        320

ÏÐÈËÎÆÅÍÈÅ 6. Îòëè÷èÿ QuickBasic 4.5 îò MS-DOS QBasic               335

ÏÐÈËÎÆÅÍÈÅ 7. Êîìïèëÿöèÿ ïðîãðàìì â QuickBasic                           338

ÏÐÈËÎÆÅÍÈÅ 8. Êîìïîíîâêà ïðîãðàìì â QuickBasic                            340

ÏÐÈËÎÆÅÍÈÅ 9. Áèáëèîòåêè                                                                    343

ÏÐÈËÎÆÅÍÈÅ 10. Áèáëèîòåêà QB.LIB                                                     348

Èñïîëüçîâàíèå ïðåðûâàíèé                                                                349

Ïðîöåäóðà ABSOLUTE                                                                         351

ÏÐÈËÎÆÅÍÈÅ 11. Ñìåøàííîå ïðîãðàììèðîâàíèå.                                356

Ñâÿçü ñ ïðîöåäóðàìè íà àññåìáëåðå è Ñè                                          356

ÏÐÈËÎÆÅÍÈÅ 12. Ñîîáùåíèÿ îá îøèáêàõ QBasic                                  364

Ê ×ÈÒÀÒÅËÞ

Àâòîðàì ýòîé êíèãè âûïàëà ó÷àñòü ïðèíÿòü ýñòàôåòó â äëèííîé öåïî÷êå êîëëåã, ñ÷èòàâøèõ ñâîèì ïðåïîäàâàòåëüñêèì äîëãîì îòêðûòü ãëàçà íà÷èíàþùèì ïðîãðàììèñòàì íà âñå äîñòîèíñòâà è îãðåõè ÿçûêà Áåéñèê. «Óíèâåðñàëüíûé ÿçûê äëÿ îáó÷åíèÿ íà÷èíàþùèõ» – òàê îïðåäåëèëè åãî íàçíà÷åíèå èçîáðåòàòåëè Áåéñèêà Äæ. Êåìåíè è Ò. Êóðö – ïðîäåìîíñòðèðîâàë íàì çà òðèäöàòü ëåò ñâîåãî ñóùåñòâîâàíèÿ ñâîéñòâà, ïðèñóùèå ìèôè÷åñêîìó Ïðîòåþ. Ñïîñîáíîñòü Áåéñèê-ñðåäû ïðèíèìàòü äåñÿòêè ðàçëè÷íûõ îáëè÷èé ïîçâîëÿåò ñ÷èòàòü Áåéñèê ñâîèì ÿçûêîì è ôèçèêàì, è ýêîíîìèñòàì, è íå â ïîñëåäíþþ î÷åðåäü ïðîãðàììèñòàì-ïðîôåññèîíàëàì.

Èçáðàííûé àâòîðàìè êíèãà ýòþäíûé ñòèëü èçó÷åíèÿ Áåéñèêà â åãî íàèáîëåå ïîïóëÿðíûõ ðåàëèçàöèÿõ, ïðèíàäëåæàùèõ ôèðìå Microsoft, ïðèäåòñÿ ïî äóøå òåì, êòî ñòðåìèòñÿ ðåàëèçîâàòü â ðåøåíèè ñâîèõ çàäà÷ ãëóáèííûå âîçìîæíîñòè èçáðàííîãî ÿçûêà ïðîãðàììèðîâàíèÿ. Ïðåäîñòàâëÿÿ ðàçíîîáðàçíûå âîçìîæíîñòè äëÿ ïðèìåíåíèÿ ðàçëè÷íûõ ïðèåìîâ ðó÷íîé îïòèìèçàöèè è ïîïðîñòó ïðîãðàììèñòñêèõ òðþêîâ, Áåéñèê ïîìîãàåò ðàçâèâàòü âîîáðàæåíèå è ÷óâñòâî ñòèëÿ, ÷òî òàê íåîáõîäèìî ïðîãðàììèñòàì âî âñå âðåìåíà. Èìåííî ýòè êîíñòðóêòèâíûå âîçìîæíîñòè Áåéñèêà ñ ëèõâîé ïåðåêðûâàþò åãî ìíîãîêðàòíî óïîìèíàåìûå â ëèòåðàòóðå îãðåõè; àâòîðû óäåëÿþò äîñòàòî÷íî ìåñòà êîììåíòàðèÿì, îòíîñÿùèìñÿ ê òàêèì îãðåõàì, è ïîêàçûâàþò, êàê ëåãêî îíè ìîãóò áûòü îáîéäåíû.

Òåì, êòî èçáðàë Áåéñèê â îïèñàííûõ ðåàëèçàöèÿõ ñâîèì ïåðâûì ÿçûêîì ïðîãðàììèðîâàíèÿ, êíèãà ïîìîæåò îöåíèòü íå òîëüêî ñâîéñòâà ñàìîãî ÿçûêà, íî è ñâîéñòâà åãî äèàëîãîâîé ñðåäû. Îòáðîøåíû òå ñâîéñòâà ñðåäû, êîòîðûå äèêòîâàëèñü ïðè÷óäëèâûìè îñîáåííîñòÿìè äîìàøíèõ êîìïüþòåðîâ (ñîçäàòåëü ïîïóëÿðíîãî â Ðîññèè «Ñèíêëåðà», êàê èçâåñòíî, ðåøèë íàãðóçèòü íè â ÷åì íå ïîâèííóþ êëàâèàòóðó ñâîåé ìèíèàòþðíîé ìàøèíû ñïîñîáíîñòüþ ââîäèòü îäíèì íàæàòèåì êëàâèøè öåëûå êëþ÷åâûå ñëîâà «è ìíîãîå äðóãîå»).  ñåãîäíÿøíèõ ðåàëèçàöèÿõ äèàëîãîâîé ñðåäû Áåéñèêà îñòàëîñü òîëüêî ãëàâíîå – ïîääåðæêà âñåãî ñïåêòðà âîçìîæíîñòåé áûñòðîãî, ýñêèçíîãî ìàêåòèðîâàíèÿ ðàçíûõ ìîäåëåé âíåøíåãî ïîâåäåíèÿ ïðîãðàììû. Ïîýòîìó íå óäèâèòåëåí íàáëþäàþùèéñÿ ðåíåññàíñ «áåéñèêîâñêîãî» ñòèëÿ ðàáîòû â èíñòðóìåíòàëüíûõ ñèñòåìàõ ïðîãðàììèðîâàíèÿ äëÿ îïåðàöèîííîé ñðåäû Microsoft Windows.

 ôèëüìå «Êîñìè÷åñêàÿ Îäèññåÿ 2001» ïî êíèãå Àðòóðà Êëàðêà áîðòîâîé êîìïüþòåð êîðàáëÿ «Äèñêàâåðè» áåñåäóåò ñ àñòðîíàâòîì íà Ôîðòðàíå. ×åñòíî ãîâîðÿ, ñåãîäíÿ ýòî êàæåòñÿ ìàëîâåðîÿòíûì. Íå äîñòàíåòñÿ ëè ýòà ðîëü â ðåàëüíîñòè î÷åðåäíîìó äèàëåêòó Áåéñèêà?... Òàêîå âïå÷àòëåíèå, ÷òî ó ñìåíÿþùèõ äðóã äðóãà ðåàëèçàöèè Áåéñèêà åñòü êàêàÿ-òî îáùàÿ ìîäåëü èììóíèòåòà, ïîçâîëÿþùàÿ èì æèòü è çäðàâñòâîâàòü ïîä ðàçãîâîðû î âîëøåáíûõ ñâîéñòâàõ Àäû è Ïðîëîãà. Çàéìèòåñü Áåéñèêîì – îí ïîçâîëèò âàì ïîêàçàòü, íà ÷òî âû ñïîñîáíû.

Ãëàâíûé ðåäàêòîð ñåðèè À.Â.Ãèãëàâûé

ÏÐÅÄÈÑËÎÂÈÅ

Êíèãà «Ýòþäû íà ÿçûêàõ QBASIC, QuickBasic è BASIC Compiler» ÿâëÿåòñÿ ëîãè÷åñêèì ïðîäîëæåíèåì êíèãè Â.Ô. Î÷êîâà è Þ.Â. Ïóõíà÷åâà «24 ýòþäà íà Áåéñèêå», âûøåäøåé â èçäàòåëüñòâå «Ôèíàíñû è ñòàòèñòèêà» â 1988 ã.

Íà ÿçûêå ìóçûêàíòîâ è øàõìàòèñòîâ «ýòþä» – ýòî íåáîëüøîå èíòåðåñíîå óïðàæíåíèå äëÿ îòðàáîòêè íåêîòîðîãî ýëåìåíòà èãðû. Ãëàâû-ýòþäû äàííîé êíèãè ñòðåìÿòñÿ íàó÷èòü âñåõ æåëàþùèõ ïðîãðàììèðîâàíèþ è äåëàþò ýòî ïî âîçìîæíîñòè íà íåñëîæíûõ è ïîíÿòíûõ ïðèìåðàõ, çàòðàãèâàþùèõ áîëüøèíñòâî àêòóàëüíûõ âîïðîñîâ ïðîãðàììèðîâàíèÿ.

Ó õóäîæíèêîâ ñëîâî «ýòþä» ïîíèìàåòñÿ êàê çàðèñîâêà, ïðåäñòàâëÿþùàÿ ñîáîé ÷àñòü áóäóùåé áîëüøîé êàðòèíû. Ïðîãðàììíûå ýòþäû êíèãè ÿâëÿþòñÿ íå òîëüêî óïðàæíåíèÿìè, íî è ñâîåãî ðîäà çàðèñîâêàìè, â êîòîðûõ âíèìàòåëüíûé ÷èòàòåëü ñìîæåò íàéòè íåìàëî ïîëåçíûõ ñîâåòîâ è èíòåðåñíûõ èäåé, êîòîðûå ïðèãîäÿòñÿ åìó â äàëüíåéøåì ïðè íàïèñàíèè áîëüøèõ ïðîãðàììíûõ ïîëîòåí.

Èòàê, äâå öåëè èçäàíèÿ êíèãè óæå ñôîðìóëèðîâàíû: íàó÷èòü ïðîãðàììèðîâàíèþ íà÷èíàþùèõ è äàòü íåñêîëüêî ïîëåçíûõ ñîâåòîâ òåì, êòî óæå óìååò ïðîãðàììèðîâàòü. Áîëåå êîíêðåòíàÿ òðåòüÿ öåëü: íàó÷èòü ïðîãðàììèðîâàòü íà ÿçûêàõ QBasic è QuickBasic.

 êíèãå îïèñàíû ðåàëèçîâàííûå ôèðìîé Microsoft âåðñèè ÿçûêà ïðîãðàììèðîâàíèÿ Áåéñèê (ñåìåéñòâî Microsoft Basic): QBasic 4.5 è åãî ñîêðàùåííûé âàðèàíò QBasic, êîòîðûé âõîäèò â ñîñòàâ äèñêîâûõ îïåðàöèîííûõ ñèñòåì MS-DOS 5.0 è âûøå.

×òîáû îáúÿñíèòü, ïî÷åìó ïðåäïî÷òåíèå îòäàåòñÿ ýòèì ÿçûêàì, ïîòðåáóþòñÿ, ïîæàëóé, ñëèøêîì ïðîñòðàííûå äëÿ ïðåäèñëîâèÿ ðàññóæäåíèÿ. Âîïðîñû î ñèëüíûõ è ñëàáûõ ñòîðîíàõ Áåéñèêà ïî ñðàâíåíèþ ñ ÿçûêàìè Ñè, Ïàñêàëü, î ìåñòå QBasic’à è QBasic'à â ñåìåéñòâå Microsoft Basic áóäóò íå ðàç çàòðîíóòû íà ñòðàíèöàõ êíèãè. Ïî ìíåíèþ àâòîðîâ, íà ñåãîäíÿøíèé äåíü äëÿ îñóùåñòâëåíèÿ ïåðâûõ äâóõ öåëåé êíèãè íàèáîëåå ïîäõîäÿò ÿçûêè QBasic è QuickBasic. Îíè ïðîñòû â îñâîåíèè, øèðîêî ðàñïðîñòðàíåíû (îñîáåííî MSDOS QBasic), íå òðåáóþò áîëüøèõ ðåñóðñîâ ìàøèíû, îòëè÷íî ðàáîòàþò íà IBM PC/AT, êîòîðûå åùå íå ïîëíîñòüþ âûòåñíåíû áîëåå ñîâðåìåííûìè ìîäåëÿìè êîìïüþòåðîâ. Ñ ïîìîùüþ ýòèõ ÿçûêîâ ìîæíî ýôôåêòèâíî ðåøàòü äîñòàòî÷íî øèðîêèé êðóã çàäà÷, à ïðè äîëæíîì ïîäõîäå îíè ñïîñîáíû ïðèâèòü õîðîøèå ïðîãðàììèñòñêèå íàâûêè, êîòîðûå ïðèãîäÿòñÿ ïðè îñâîåíèè ëþáûõ äðóãèõ ÿçûêîâ ïðîãðàììèðîâàíèÿ.

Ïåðåõîä îò ðàáîòû â ñðåäå DOS ê ðàáîòå â ñðåäå Windows åùå áîëåå âîçâûøàåò ÿçûê Basic êàê áàçîâûé ÿçûê ïðîãðàììèðîâàíèÿ. Òàêèå ïîïóëÿðíûå ïðèëîæåíèÿ ïîä Windows, êàê Word 6.0 è Excel 5.0, èñïîëüçóþò ÿçûê Basic (Word Basic è Visual Basic, Applications Editor) â êà÷åñòâå ÿçûêà óïðàâëåíèÿ.  íîâóþ âåðñèþ Windows(Windows 95) âñòðîåí ÿçûê ïðîãðàììèðîâàíèÿ Visual Basic.

Îñîáåííîñòü êíèãè â òîì, ÷òî îíà îäíîâðåìåííî ÿâëÿåòñÿ ñâîåîáðàçíûì ó÷åáíèêîì äëÿ íà÷èíàþùèõ è â òî æå âðåìÿ – ðóêîâîäñòâîì ïî ÿçûêàì ïðîãðàììèðîâàíèÿ QuickBasic è QBasic. Èíîãäà ïðåîáëàäàåò ïåðâàÿ òåíäåíöèÿ, èíîãäà – âòîðàÿ.  ëþáîì ñëó÷àå àâòîðû ñòðåìèëèñü ê ìàêñèìàëüíî ïîëíîìó èçëîæåíèþ âîçìîæíîñòåé ýòèõ ÿçûêîâ, íî ïðè ýòîì âñå æå îðèåíòèðóÿñü áîëüøå íà íà÷èíàþùèõ (õîòÿ è íå âñåãäà).

Êàæäûé èç ñîáðàííûõ â êíèãå ýòþäîâ – ýòî æèâàÿ ñöåíêà, ñþæåòíûì öåíòðîì êîòîðîé ñëóæèò òà èëè èíàÿ çàäà÷à, ðåøàåìàÿ ñ ïîìîùüþ ïåðñîíàëüíîãî êîìïüþòåðà.  ðàññêàçàõ è áåñåäàõ ó÷àñòíèêîâ ñöåíêè ëèáî êîììåíòèðóåòñÿ óæå ãîòîâàÿ ïðîãðàììà, ëèáî îïèñûâàåòñÿ ïðîöåññ åå ñîñòàâëåíèÿ. Ïî õîäó äèàëîãîâ ÷èòàòåëü çíàêîìèòñÿ ñ ïðèåìàìè ïðîãðàììèðîâàíèÿ è ðàáîòû íà ïåðñîíàëüíûõ êîìïüþòåðàõ.

 ÷åðåäîâàíèè ó÷àñòíèêîâ ñöåí íåò íèêàêîé ëîãè÷åñêîé çàêîíîìåðíîñòè. Íà÷àëüíèêà ëàáîðàòîðèè ñìåíÿåò õîçÿéêà äîìà, ãäå íåäàâíî ïîÿâèëñÿ áûòîâîé êîìïüþòåð: èíæåíåðà-ïðîãðàììèñòà – ïîýò, çàèíòåðåñîâàâøèéñÿ ñòîëü ìîäíîé ñåãîäíÿ êîìïüþòåðíîé ïðåìóäðîñòüþ. Âìåñòå ñ òåì äîâîëüíî ñòðîãîé çàêîíîìåðíîñòè ïîä÷èíåíî ñîäåðæàíèå èõ ðàçãîâîðîâ: ðàñêðûâàåìûå â íèõ ïðèåìû ïðîãðàììèðîâàíèÿ óñëîæíÿþòñÿ îò ýòþäà ê ýòþäó, âñå áîëåå ïðîñòðàííûìè è ëîãè÷åñêè ñëîæíûìè ñòàíîâÿòñÿ îáñóæäàåìûå ïðîãðàììû.

Àâòîðû âûðàæàþò ãëóáîêóþ áëàãîäàðíîñòü Ã.À. Çåëüäíåðó è À.À. Êîëåñîâó çà öåííûå çàìå÷àíèÿ è ïîæåëàíèÿ, êîòîðûå îíè âûñêàçàëè ïðè ðåöåíçèðîâàíèè ðóêîïèñè.

Ïåðñîíàëüíàÿ ñòðàíè÷êà Â.Ô.Î÷êîâà