, Microsoft Visual C++ c MFC. ecpoae o Apeeco popecc

eopeece oco papao Windows-poe c cooae oe MFC. oae AFX. cooe. Coae poe c oo Visual C++. Ocae popaoo poa, peoa execo oecee.

,
29.06.2011
733,5 K

. ,

, , , , .

http://www.allbest.ru/

http://www.allbest.ru/

pcoo poe

, Microsoft Visual C++ c MFC. ecpoae o Apeeco popecc

eee

, Windows . Windows. . Windows- Microsoft MFC (Microsoft Foundation Classes - Microsoft), 1992 . Microsoft C/C++ 7.0. C++, Windows 95,98/NT , , .

MFC , Delphi Visual Basic, . Microsoft Visual ++ MFC. MFC - Windows . . , MFC , , . , MFC , Windows, Windows MFC.

1

1.1 eopeece oco papao Windows-poe c cooae oe MFC

MFC - , . MFC - , ( ) , - , RAD ( ). RAD, , , , . . , RAD. (, ), RAD, Windows-.

MFC , ++. . 1. Object, , , , .

, CObject, RUNTIME_CLASS(). ++ RTTI, , MFC, .

, CObject, . MFC .

1.2 oae AFX

MFC , , . Afx, AfxGetApp. AFX Application FrameworkX, , .

AFX MFC. , . AFX , (, , ) MFC.

MFC AppWizard ClassWizard, :

 // {{AFX_  // }} AFX_

, MFC AppWizard ClassWizard. . ClassWizard.

1.3 cooe

Windows , . . Windows . switch , . . MFC . .

MFC - , . , , . .
:

1. .

2. - , .

3. -.

1.4 Coae poe c oo Visual C++

O pax cpoca poe paccaaoc e. eep paccop, a oo coaec c oo Visual C++. Caaa paepe oo aoe oe - poe. o cx op poee paccapaoc, a oo a coooc oeo aox poox acco. o oecee pao poe peec eo oee - ap c ocae acco eoxoo ocae pecpco, cax c poee, a cpaoa ccea .. ep poe a pa coec, oa eec ao o a poee.

cpee Visual C++ oo cpo pae poeo. ae poe oce x coa oo opoa aca a coee. pa Microsoft papaoaa cea cpeap, oea cop coae poeo cpee Visual C++. apep, acep MFC AppWizard (exe) ooe coa poe, Windows-poe oopoe ee oooe, oooe aoo epec coe oe MFC.

1.5 cpeaoe cpeco - ClassWizard (acep acco)

Coaae oco poe cocae a, o aee paoe c poeo oo cooa poe cpeaoe cpeco - ClassWizard (acep acco), peaaeoe coa ocoo ox poox acco. Ee oo ocooe aaee ClassWizard o, o o coae oco epeopeeex eoo. O ooe oaa ce cooe, pxoe acc, coa oco opaoa oo x cooe. o oo e ocoe ClassWizard. O e cece, o eo oooc ooo e.

Cpeco ClassWizard peocae po cep c. O ooe e oo oa cece acc oe eo ae.

1.6 Coae ooo acca

visual

p oo ClassWizard oo oa o acc, coa a ocoe aox acco. aece aooo acca oo cooa acc, aceoae o acca CCmdTarget acca CRecordset. aceoa acco o px aox acco cooa cpeca ClassWizard e. ae acc ao coaa p, eocpeceo ecoo peaope.

oea aooa acca ooc paoococoa. Ee oo oo o coe cope o eoa a. pao oo o p, o opao e poe ocooac ca ClassWizard. a ce cooa ClassWizard poepa coa coceoo acca aeo copec eaec epooc coep o o pe oe eoo.

1.7 ee acc ox eoo

Oe oo cooa ClassWizard e coca acca ox eoo. oo oa acc eo, cae opao cooe Windows oa o oeo, a ae eo, epeopeee pae eo aox acco.

ClassWizard e oo ooe oa acc oe eo, o a x. ClassWizard caocoeo a oee eoa acca.

1.8 ee acc ox eeo ax

ClassWizard ooe a acc e oo oe eo, o ee ax, cae c o aoox aee, op pocopa op pocopa ace a ax oe aopo ace. ClassWizard coe ceae poep, o pa coae ee ax acca o aoox aee. poep oc aa oe a aooo ae poepa ax aooo ae (Dialog Data Exchange and Dialog Data Validation - DDX/DDV). o pa o aopo ace epee, coec poepa oea a c o ace (Record Field Exchange - RFX).

1.9 peeco MFC oe

, MFC - () , ++ Windows. , 200 . Windows- - . , MFC , Windows.

oea MFC papaaaac poe aa, cox epe popaco. a eco, pao eo popapoa o Windows pee aca ocaoo x cox popa, ex p ceecx ocoeoce. acoc, coa oo apaca popa a eoo oaoc ooo 75 cpo oa. o epe e ee cooc popa ee o oe oca oce eepox paepo. Oao a e caa popaa, acaa c cooae MFC, e pepo p paa ee, oco oco acx eae cpo o popaca.

MFC , ++, , MFC, ++. . , . , MFC, ++, .

2. Ocae popaoo poa

2.1 Oe cee

aa popaa acaa a Microsoft Visual Studio 2008. C++.

2.2 oaoe aaee

a popaa peaaea poep a ooae o ee Apeeca popecc. popaa oa poep a o apeeco popecc, ce poooo ea popecc o epo paoae, opeeee c n epx eo popecc a aa a apeec popecc. popaa oa aa ooae aa opoco o peaa oeo a poe a poeax ( 1).

Pco 1 - popaa ecpoa, epoe oo.

aa 1 - aae opoca oe

opoca

aae

o-o ao(%)

Oe

opoc 1

ae paoc, apeeco popecc, ec eco, o e e pa 29, a e e pae 45.

5

1

opoc 2

a e ec e apeeco popecc 1; 3; 5; 7;.?

5

2

opoc 3

a e ce e apeeco popecc 14; 2; -10;.?

5

3

opoc 4

ae paoc, apeeco popecc, ec eco, o pe e e pa 15, a oo e pae 30.

5

3

opoc 5

ao ce e ec eo apeeco popecc 4; 7; 10; 13;.?

5

4

opoc 6

a e ce e apeeco popecc 2; 14; 26;.?

5

1

opoc 7

ae paoc, apeeco popecc, ec eco, o ep e e pa 2, a e pae 50.

5

2

opoc 8

ae paoc, apeeco popecc, ec eco, o e e pa 30, a e e pae 54.

5

3

opoc 9

ao: an - apeeca popecc; a10 = 126, d = 4. a a1

5

4

opoc 10

ao: an - apeeca popecc; a1 = 12; d = 0,4. a a51

5

1

opoc 11

ec co 156 eo apeeco popecc (an), oopo a1 = 24; a22= 60?

5

2

opoc 12

apeeco popecc ec a1 = -12; d = 3. ae a5.

5

3

opoc 13

epe e ae o oop e a ceo e apeeco popecc.

5

4

opoc 14

ooo ae aa c 15 . a ce e pe ea a 10 . Coo e cee ooc ae aao pee, o oc acao pooeoc ooo, e e a opoe opoca 105 ?

5

10

opoc 15

peoex oceoaeoce epe e, oope c apeec popecc:

5

1

opoc 16

apeeco popecc ec a1 = -12; d = 3. ae a6

5

2

opoc 17

a e 11- e apeeco popecc 1; 3; 5; 7;.?

5

3

opoc 18

a e ec e apeeco popecc 2; 4; 6; 8;.?

5

4

opoc 19

a e 11- e apeeco popecc 4; 7; 10; 13;.?

5

1

opoc 20

peoex oceoaeoce epe e, oope c apeec popecc:

5

2

2.3

popaa aaec . aa popaa papaoaa poep a ooae.

CKursovikDlg, rezilt OnBnClickedButton1. rezilt . OnBnClickedButton1 . Vopros1, Vopros2, Vopros3,. Vopros20. m_otvet, .

aa 2 - Cea papaoax acco

acca

e acca

Cocoa oca

aaee

CKursovikDlg

OnBnClickedButton1

op

rezilt

op

o oee a

Vopros1

m_otvet

op

-

Vopros2

m_otvet

op

-

Vopros3

m_otvet

op

-

Vopros4

m_otvet

op

-

Vopros5

m_otvet

op

-

Vopros10

m_otvet

op

-

Vopros11

m_otvet

op

-

Vopros12

m_otvet

op

-

Vopros13

m_otvet

op

-

Vopros14

m_otvet

op

-

Vopros15

m_otvet

op

-

Vopros14

m_otvet

op

-

Vopros16

m_otvet

op

-

Vopros17

m_otvet

op

-

Vopros18

m_otvet

op

-

Vopros19

m_otvet

op

-

Vopros20

m_otvet

op

-

2.4 peoa execo oecee

oppeo pao popa eoxo IBM PC coec oep, oepaoa ccea ceeca Windows epc 95/98/NT/XP, S Access, oepaa a 128 Mb e, coooe eco a ce 10 a o paeee poe a ax.

2.5

.

( 2).

2 -

20 . 18 ( 3) 2 ( 4).

3 -

4 -

( 5 6).

5 - 100%

6 - 70%

aee

xoe oe pcooo poea o coao Windows-poee, ooee poep a ooae o ee Apeeca popecc. aa popaa a acaa a Microsoft Visual Studio 2008 c cooae oe MFC.

xoe papao pcooo poea a ocoea paoa c Microsoft Visual Studio 2008. a ocoea paoa c coae aoox oo. a ocoea paoa c pa eea epeca, paoa c acepa Microsoft Visual Studio 2008.

ae poce poe e ooe, o poo epc pax cepax eoeeco eeoc. oo aca ooe popa a e popapoa Microsoft Visual Studio 2008 c cooae oe MFC coa px poe.

Cco cooao epap

epoco A., Visual C++ MFC. pc MCSD poeccoao. - C: aeco ep, 2000.

aac ., ppe ooe pooco o Visual C++. - c: OOO op, 1999.

ap c. Visual C++ 6. - .: aopaop aox a, 1999.

ep Ce, aap popapoae a Visual C++. poeccoao, .: aeco aCo, 1999.

aeoa . Visual C++ 6 (VISUAL STUDIO 98). po popapoa - .: ao-, 1999.

Oco popapoa a Visual C++, eoa aa o pc exoo popapoa ceaoce 220200, 071900.

e peop cooa Visial C++ 6.0, , C, .: aec o c, 2000.

A. . poo, .. poo Microsoft Visual C++ MFC. popapoae Windows 95 Windows NT 2-x . (ac 1) (oea cceoo popaca; . 28) .: ao - , 1997.

A. . poo, .. poo Microsoft Visual C++ MFC. popapoae Windows 95 Windows NT 2-x . (ac 2) (oea cceoo popaca; . 28) .: ao - , 1997.

X.A. po, .. opoa eoece peoea o oope o pao pcox poeo(pao), Capoo: -o Ce-a , 2000.

poee 1

apaa acco

poee 2

c popa

 // KursovikDlg.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include KursovikDlg.h

#include Vopros1.h

#include Vopros2.h

#include Vopros3.h

#include Vopros4.h

#include Vopros5.h

#include Vopros6.h

#include Vopros7.h

#include Vopros8.h

#include Vopros9.h

#include Vopros10.h

#include Vopros11.h

#include Vopros12.h

#include Vopros13.h

#include Vopros14.h

#include Vopros15.h

#include Vopros16.h

#include Vopros17.h

#include Vopros18.h

#include Vopros19.h

#include Vopros20.h

#ifdef _DEBUG

#define new DEBUG_NEW

#endif

 // CAboutDlg dialog used for App About

class CAboutDlg: public CDialog

{

public:

CAboutDlg();

 // Dialog Data

enum {IDD = IDD_ABOUTBOX};

protected:

virtual void DoDataExchange (CDataExchange* pDX); // DDX/DDV support

 // Implementation

protected:

DECLARE_MESSAGE_MAP()

};

CAboutDlg:CAboutDlg(): CDialog (CAboutDlg:IDD)

{

}

void CAboutDlg: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (CAboutDlg, CDialog)

END_MESSAGE_MAP()

 // CKursovikDlg dialog

CKursovikDlg:CKursovikDlg (CWnd* pParent /*=NULL*/)

: CDialog (CKursovikDlg:IDD, pParent)

rezilt(0)

{

m_hIcon = AfxGetApp()->LoadIcon (IDR_MAINFRAME);

}

void CKursovikDlg: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

DDX_Text (pDX, IDC_EDIT1, rezilt);

}

BEGIN_MESSAGE_MAP (CKursovikDlg, CDialog)

ON_WM_SYSCOMMAND()

ON_WM_PAINT()

ON_WM_QUERYDRAGICON()

 // }} AFX_MSG_MAP

ON_BN_CLICKED (IDC_BUTTON1, &CKursovikDlg: OnBnClickedButton1)

END_MESSAGE_MAP()

 // CKursovikDlg message handlers

BOOL CKursovikDlg: OnInitDialog()

{

CDialog: OnInitDialog();

 // Add About menu item to system menu.

 // IDM_ABOUTBOX must be in the system command range.

ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);

ASSERT (IDM_ABOUTBOX < 0xF000);

CMenu* pSysMenu = GetSystemMenu(FALSE);

if (pSysMenu!= NULL)

{

CString strAboutMenu;

strAboutMenu. LoadString (IDS_ABOUTBOX);

if (! strAboutMenu. IsEmpty())

{

pSysMenu->AppendMenu (MF_SEPARATOR);

pSysMenu->AppendMenu (MF_STRING, IDM_ABOUTBOX, strAboutMenu);

}

}

 // Set the icon for this dialog. The framework does this automatically

 // when the application's main window is not a dialog

SetIcon (m_hIcon, TRUE); // Set big icon

SetIcon (m_hIcon, FALSE); // Set small icon

 // TODO: Add extra initialization here

return TRUE; // return TRUE unless you set the focus to a control

}

void CKursovikDlg: OnSysCommand (UINT nID, LPARAM lParam)

{

if ((nID & 0xFFF0) == IDM_ABOUTBOX)

{

CAboutDlg dlgAbout;

dlgAbout. DoModal();

}

else

{

CDialog: OnSysCommand (nID, lParam);

}

}

 // If you add a minimize button to your dialog, you will need the code below

 // to draw the icon. For MFC applications using the document/view model,

 // this is automatically done for you by the framework.

void CKursovikDlg: OnPaint()

{

if (IsIconic())

{

CPaintDC dc(this); // device context for painting

SendMessage (WM_ICONERASEBKGND, reinterpret_cast<WPARAM>(dc. GetSafeHdc()), 0);

 // Center icon in client rectangle

int cxIcon = GetSystemMetrics (SM_CXICON);

int cyIcon = GetSystemMetrics (SM_CYICON);

CRect rect;

GetClientRect(&rect);

int x = (rect. Width() - cxIcon + 1) / 2;

int y = (rect. Height() - cyIcon + 1) / 2;

 // Draw the icon

dc. DrawIcon (x, y, m_hIcon);

}

else

{

CDialog: OnPaint();

}

}

 // The system calls this function to obtain the cursor to display while the user drags

 // the minimized window.

HCURSOR CKursovikDlg: OnQueryDragIcon()

{

return static_cast<HCURSOR>(m_hIcon);

}

void CKursovikDlg: OnBnClickedButton1 ()

{

 // TODO: Add your control notification handler code here

Vopros1 dlg;

rezilt=0;

if (dlg. DoModal()==IDOK)

{

rezilt+=dlg.m_otvet;

UpdateData(false);

}

Vopros2 dlg2;

if (dlg2. DoModal()==IDOK)

{

rezilt+=dlg2.m_otvet;

UpdateData(false);

}

Vopros3 dlg3;

if (dlg3. DoModal()==IDOK)

{

rezilt+=dlg3.m_otvet;

UpdateData(false);

}

Vopros4 dlg4;

if (dlg4. DoModal()==IDOK)

{

if (dlg4.m_otvet==3)

{

rezilt+=5;

UpdateData(false);

}

}

Vopros5 dlg5;

if (dlg5. DoModal()==IDOK)

{

rezilt+=dlg5.m_otvet;

UpdateData(false);

}

Vopros6 dlg6;

if (dlg6. DoModal()==IDOK)

{

rezilt+=dlg6.m_otvet;

UpdateData(false);

}

Vopros7 dlg7;

if (dlg7. DoModal()==IDOK)

{

rezilt+=dlg7.m_otvet;

UpdateData(false);

}

Vopros8 dlg8;

if (dlg8. DoModal()==IDOK)

{

rezilt+=dlg8.m_otvet;

UpdateData(false);

}

Vopros9 dlg9;

if (dlg9. DoModal()==IDOK)

{

rezilt+=dlg9.m_otvet;

UpdateData(false);

}

Vopros10 dlg10;

if (dlg10. DoModal()==IDOK)

{

rezilt+=dlg10.m_otvet;

UpdateData(false);

}

Vopros11 dlg11;

if (dlg11. DoModal()==IDOK)

{

rezilt+=dlg11.m_otvet;

UpdateData(false);

}

Vopros12 dlg12;

if (dlg12. DoModal()==IDOK)

{

rezilt+=dlg12.m_otvet;

UpdateData(false);

}

Vopros13 dlg13;

if (dlg13. DoModal()==IDOK)

{

rezilt+=dlg13.m_otvet;

UpdateData(false);

}

Vopros14 dlg14;

if (dlg14. DoModal()==IDOK)

{

if (dlg14.m_otvet==10)

{

rezilt+=5;

UpdateData(false);

}

}

Vopros15 dlg15;

if (dlg15. DoModal()==IDOK)

{

rezilt+=dlg15.m_otvet;

UpdateData(false);

}

Vopros16 dlg16;

if (dlg16. DoModal()==IDOK)

{

rezilt+=dlg16.m_otvet;

UpdateData(false);

}

Vopros17 dlg17;

if (dlg17. DoModal()==IDOK)

{

rezilt+=dlg17.m_otvet;

UpdateData(false);

}

Vopros18 dlg18;

if (dlg18. DoModal()==IDOK)

{

rezilt+=dlg18.m_otvet;

UpdateData(false);

}

Vopros19 dlg19;

if (dlg19. DoModal()==IDOK)

{

rezilt+=dlg19.m_otvet;

UpdateData(false);

}

Vopros20 dlg20;

if (dlg20. DoModal()==IDOK)

{

rezilt+=dlg20.m_otvet;

UpdateData(false);

}

}

opoc 1.

 // Vopros1.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros1.h

 // Vopros1 dialog

IMPLEMENT_DYNAMIC (Vopros1, CDialog)

Vopros1: Vopros1 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros1:IDD, pParent)

m_otvet(0)

{

}

Vopros1:~Vopros1 ()

{

}

void Vopros1: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros1, CDialog)

ON_BN_CLICKED (IDC_RADIO1, &Vopros1: OnBnClickedRadio1)

ON_BN_CLICKED (IDC_RADIO2, &Vopros1: OnBnClickedRadio2)

ON_BN_CLICKED (IDC_RADIO3, &Vopros1: OnBnClickedRadio3)

ON_BN_CLICKED (IDC_RADIO4, &Vopros1: OnBnClickedRadio4)

END_MESSAGE_MAP()

 // Vopros1 message handlers

void Vopros1: OnBnClickedRadio1 ()

{

 // TODO: Add your control notification handler code here

m_otvet=5;

}

void Vopros1: OnBnClickedRadio2 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros1: OnBnClickedRadio3 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros1: OnBnClickedRadio4 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

opoc 2.

 // Vopros2.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros2.h

 // Vopros2 dialog

IMPLEMENT_DYNAMIC (Vopros2, CDialog)

Vopros2: Vopros2 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros2:IDD, pParent)

m_otvet(0)

{

}

Vopros2:~Vopros2 ()

{

}

void Vopros2: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros2, CDialog)

ON_BN_CLICKED (IDC_RADIO1, &Vopros2: OnBnClickedRadio1)

ON_BN_CLICKED (IDC_RADIO2, &Vopros2: OnBnClickedRadio2)

ON_BN_CLICKED (IDC_RADIO3, &Vopros2: OnBnClickedRadio3)

ON_BN_CLICKED (IDC_RADIO4, &Vopros2: OnBnClickedRadio4)

END_MESSAGE_MAP()

 // Vopros2 message handlers

void Vopros2: OnBnClickedRadio1 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros2: OnBnClickedRadio2 ()

{

 // TODO: Add your control notification handler code here

m_otvet=5;

}

void Vopros2: OnBnClickedRadio3 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros2: OnBnClickedRadio4 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

opoc 3.

 // Vopros3.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros3.h

 // Vopros3 dialog

IMPLEMENT_DYNAMIC (Vopros3, CDialog)

Vopros3: Vopros3 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros3:IDD, pParent)

m_otvet(0)

{

}

Vopros3:~Vopros3 ()

{

}

void Vopros3: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros3, CDialog)

ON_BN_CLICKED (IDC_RADIO1, &Vopros3: OnBnClickedRadio1)

ON_BN_CLICKED (IDC_RADIO2, &Vopros3: OnBnClickedRadio2)

ON_BN_CLICKED (IDC_RADIO3, &Vopros3: OnBnClickedRadio3)

ON_BN_CLICKED (IDC_RADIO4, &Vopros3: OnBnClickedRadio4)

END_MESSAGE_MAP()

 // Vopros3 message handlers

void Vopros3: OnBnClickedRadio1 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros3: OnBnClickedRadio2 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros3: OnBnClickedRadio3 ()

{

 // TODO: Add your control notification handler code here

m_otvet=5;

}

void Vopros3: OnBnClickedRadio4 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

opoc 4.

 // Vopros4.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros4.h

 // Vopros4 dialog

IMPLEMENT_DYNAMIC (Vopros4, CDialog)

Vopros4: Vopros4 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros4:IDD, pParent)

m_otvet(0)

{

}

Vopros4:~Vopros4 ()

{

}

void Vopros4: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros4, CDialog)

ON_EN_CHANGE (IDC_EDIT1, &Vopros4: OnEnChangeEdit1)

ON_BN_CLICKED (IDOK, &Vopros4: OnBnClickedOk)

END_MESSAGE_MAP()

 // Vopros4 message handlers

void Vopros4: OnEnChangeEdit1 ()

{

m_otvet=3;

 // TODO: If this is a RICHEDIT control, the control will not

 // send this notification unless you override the CDialog: OnInitDialog()

 // function and call CRichEditCtrl().SetEventMask()

 // with the ENM_CHANGE flag ORed into the mask.

 // TODO: Add your control notification handler code here

}

void Vopros4: OnBnClickedOk()

{

 // TODO: Add your control notification handler code here

UpdateData(true);

OnOK();

}

opoc 5.

 // Vopros5.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros5.h

 // Vopros5 dialog

IMPLEMENT_DYNAMIC (Vopros5, CDialog)

Vopros5: Vopros5 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros5:IDD, pParent)

m_otvet(0)

{

}

Vopros5:~Vopros5 ()

{

}

void Vopros5: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros5, CDialog)

ON_BN_CLICKED (IDC_RADIO1, &Vopros5: OnBnClickedRadio1)

ON_BN_CLICKED (IDC_RADIO2, &Vopros5: OnBnClickedRadio2)

ON_BN_CLICKED (IDC_RADIO3, &Vopros5: OnBnClickedRadio3)

ON_BN_CLICKED (IDC_RADIO4, &Vopros5: OnBnClickedRadio4)

ON_BN_CLICKED (IDOK, &Vopros5: OnBnClickedOk)

END_MESSAGE_MAP()

 // Vopros5 message handlers

void Vopros5: OnBnClickedRadio1 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros5: OnBnClickedRadio2 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros5: OnBnClickedRadio3 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros5: OnBnClickedRadio4 ()

{

 // TODO: Add your control notification handler code here

m_otvet=5;

}

void Vopros5: OnBnClickedOk()

{

 // TODO: Add your control notification handler code here

OnOK();

}

opoc 6.

 // Vopros6.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros6.h

 // Vopros6 dialog

IMPLEMENT_DYNAMIC (Vopros6, CDialog)

Vopros6: Vopros6 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros6:IDD, pParent)

m_otvet(0)

{

}

Vopros6:~Vopros6 ()

{

}

void Vopros6: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros6, CDialog)

ON_BN_CLICKED (IDC_RADIO1, &Vopros6: OnBnClickedRadio1)

ON_BN_CLICKED (IDC_RADIO2, &Vopros6: OnBnClickedRadio2)

ON_BN_CLICKED (IDC_RADIO3, &Vopros6: OnBnClickedRadio3)

ON_BN_CLICKED (IDC_RADIO4, &Vopros6: OnBnClickedRadio4)

END_MESSAGE_MAP()

 // Vopros6 message handlers

void Vopros6: OnBnClickedRadio1 ()

{

 // TODO: Add your control notification handler code here

m_otvet=5;

}

void Vopros6: OnBnClickedRadio2 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros6: OnBnClickedRadio3 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros6: OnBnClickedRadio4 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

opoc 7.

 // Vopros7.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros7.h

 // Vopros7 dialog

IMPLEMENT_DYNAMIC (Vopros7, CDialog)

Vopros7: Vopros7 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros7:IDD, pParent)

m_otvet(0)

{

}

Vopros7:~Vopros7 ()

{

}

void Vopros7: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros7, CDialog)

ON_BN_CLICKED (IDC_RADIO1, &Vopros7: OnBnClickedRadio1)

ON_BN_CLICKED (IDC_RADIO2, &Vopros7: OnBnClickedRadio2)

ON_BN_CLICKED (IDC_RADIO3, &Vopros7: OnBnClickedRadio3)

ON_BN_CLICKED (IDC_RADIO4, &Vopros7: OnBnClickedRadio4)

END_MESSAGE_MAP()

 // Vopros7 message handlers

void Vopros7: OnBnClickedRadio1 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros7: OnBnClickedRadio2 ()

{

 // TODO: Add your control notification handler code here

m_otvet=5;

}

void Vopros7: OnBnClickedRadio3 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros7: OnBnClickedRadio4 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

opoc 8.

 // Vopros8.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros8.h

 // Vopros8 dialog

IMPLEMENT_DYNAMIC (Vopros8, CDialog)

Vopros8: Vopros8 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros8:IDD, pParent)

m_otvet(0)

{

}

Vopros8:~Vopros8 ()

{

}

void Vopros8: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros8, CDialog)

ON_BN_CLICKED (IDC_RADIO1, &Vopros8: OnBnClickedRadio1)

ON_BN_CLICKED (IDC_RADIO2, &Vopros8: OnBnClickedRadio2)

ON_BN_CLICKED (IDC_RADIO3, &Vopros8: OnBnClickedRadio3)

ON_BN_CLICKED (IDC_RADIO4, &Vopros8: OnBnClickedRadio4)

END_MESSAGE_MAP()

 // Vopros8 message handlers

void Vopros8: OnBnClickedRadio1 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros8: OnBnClickedRadio2 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros8: OnBnClickedRadio3 ()

{

 // TODO: Add your control notification handler code here

m_otvet=5;

}

void Vopros8: OnBnClickedRadio4 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

opoc 9.

 // Vopros9.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros9.h

 // Vopros9 dialog

IMPLEMENT_DYNAMIC (Vopros9, CDialog)

Vopros9: Vopros9 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros9:IDD, pParent)

m_otvet(0)

{

}

Vopros9:~Vopros9 ()

{

}

void Vopros9: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros9, CDialog)

ON_BN_CLICKED (IDC_RADIO1, &Vopros9: OnBnClickedRadio1)

ON_BN_CLICKED (IDC_RADIO2, &Vopros9: OnBnClickedRadio2)

ON_BN_CLICKED (IDC_RADIO3, &Vopros9: OnBnClickedRadio3)

ON_BN_CLICKED (IDC_RADIO4, &Vopros9: OnBnClickedRadio4)

END_MESSAGE_MAP()

 // Vopros9 message handlers

void Vopros9: OnBnClickedRadio1 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros9: OnBnClickedRadio2 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros9: OnBnClickedRadio3 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros9: OnBnClickedRadio4 ()

{

 // TODO: Add your control notification handler code here

m_otvet=5;

}

opoc 10.

 // Vopros10.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros10.h

 // Vopros10 dialog

IMPLEMENT_DYNAMIC (Vopros10, CDialog)

Vopros10: Vopros10 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros10:IDD, pParent)

m_otvet(0)

{

}

Vopros10:~Vopros10 ()

{

}

void Vopros10: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros10, CDialog)

ON_BN_CLICKED (IDC_RADIO1, &Vopros10: OnBnClickedRadio1)

ON_BN_CLICKED (IDC_RADIO2, &Vopros10: OnBnClickedRadio2)

ON_BN_CLICKED (IDC_RADIO3, &Vopros10: OnBnClickedRadio3)

ON_BN_CLICKED (IDC_RADIO4, &Vopros10: OnBnClickedRadio4)

END_MESSAGE_MAP()

 // Vopros10 message handlers

void Vopros10: OnBnClickedRadio1 ()

{

 // TODO: Add your control notification handler code here

m_otvet=5;

}

void Vopros10: OnBnClickedRadio2 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros10: OnBnClickedRadio3 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros10: OnBnClickedRadio4 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

opoc 11.

 // Vopros11.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros11.h

 // Vopros11 dialog

IMPLEMENT_DYNAMIC (Vopros11, CDialog)

Vopros11: Vopros11 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros11:IDD, pParent)

m_otvet(0)

{

}

Vopros11:~Vopros11 ()

{

}

void Vopros11: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros11, CDialog)

ON_BN_CLICKED (IDC_RADIO2, &Vopros11: OnBnClickedRadio2)

ON_BN_CLICKED (IDC_RADIO3, &Vopros11: OnBnClickedRadio3)

END_MESSAGE_MAP()

 // Vopros11 message handlers

void Vopros11: OnBnClickedRadio2 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros11: OnBnClickedRadio3 ()

{

 // TODO: Add your control notification handler code here

m_otvet=5;

}

opoc 12.

 // Vopros12.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros12.h

 // Vopros12 dialog

IMPLEMENT_DYNAMIC (Vopros12, CDialog)

Vopros12: Vopros12 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros12:IDD, pParent)

m_otvet(0)

{

}

Vopros12:~Vopros12 ()

{

}

void Vopros12: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros12, CDialog)

ON_BN_CLICKED (IDC_RADIO1, &Vopros12: OnBnClickedRadio1)

ON_BN_CLICKED (IDC_RADIO2, &Vopros12: OnBnClickedRadio2)

ON_BN_CLICKED (IDC_RADIO3, &Vopros12: OnBnClickedRadio3)

ON_BN_CLICKED (IDC_RADIO4, &Vopros12: OnBnClickedRadio4)

END_MESSAGE_MAP()

 // Vopros12 message handlers

void Vopros12: OnBnClickedRadio1 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros12: OnBnClickedRadio2 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros12: OnBnClickedRadio3 ()

{

 // TODO: Add your control notification handler code here

m_otvet=5;

}

void Vopros12: OnBnClickedRadio4 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

opoc 13.

 // Vopros13.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros13.h

 // Vopros13 dialog

IMPLEMENT_DYNAMIC (Vopros13, CDialog)

Vopros13: Vopros13 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros13:IDD, pParent)

m_otvet(0)

{

}

Vopros13:~Vopros13 ()

{

}

void Vopros13: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros13, CDialog)

ON_BN_CLICKED (IDC_RADIO1, &Vopros13: OnBnClickedRadio1)

ON_BN_CLICKED (IDC_RADIO2, &Vopros13: OnBnClickedRadio2)

ON_BN_CLICKED (IDC_RADIO3, &Vopros13: OnBnClickedRadio3)

ON_BN_CLICKED (IDC_RADIO4, &Vopros13: OnBnClickedRadio4)

END_MESSAGE_MAP()

 // Vopros13 message handlers

void Vopros13: OnBnClickedRadio1 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros13: OnBnClickedRadio2 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros13: OnBnClickedRadio3 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros13: OnBnClickedRadio4 ()

{

 // TODO: Add your control notification handler code here

m_otvet=5;

}

opoc 14.

 // Vopros14.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros14.h

 // Vopros14 dialog

IMPLEMENT_DYNAMIC (Vopros14, CDialog)

Vopros14: Vopros14 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros14:IDD, pParent)

m_otvet(0)

{

}

Vopros14:~Vopros14 ()

{

}

void Vopros14: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros14, CDialog)

ON_BN_CLICKED (IDOK, &Vopros14: OnBnClickedOk)

ON_EN_CHANGE (IDC_EDIT1, &Vopros14: OnEnChangeEdit1)

END_MESSAGE_MAP()

 // Vopros14 message handlers

void Vopros14: OnBnClickedOk()

{

 // TODO: Add your control notification handler code here

UpdateData(true);

OnOK();

}

void Vopros14: OnEnChangeEdit1 ()

{

m_otvet=10;

 // TODO: If this is a RICHEDIT control, the control will not

 // send this notification unless you override the CDialog: OnInitDialog()

 // function and call CRichEditCtrl().SetEventMask()

 // with the ENM_CHANGE flag ORed into the mask.

 // TODO: Add your control notification handler code here

}

opoc 15.

 // Vopros15.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros15.h

 // Vopros15 dialog

IMPLEMENT_DYNAMIC (Vopros15, CDialog)

Vopros15: Vopros15 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros15:IDD, pParent)

m_otvet(0)

{

}

Vopros15:~Vopros15 ()

{

}

void Vopros15: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros15, CDialog)

ON_BN_CLICKED (IDC_RADIO1, &Vopros15: OnBnClickedRadio1)

ON_BN_CLICKED (IDC_RADIO2, &Vopros15: OnBnClickedRadio2)

ON_BN_CLICKED (IDC_RADIO3, &Vopros15: OnBnClickedRadio3)

ON_BN_CLICKED (IDC_RADIO4, &Vopros15: OnBnClickedRadio4)

END_MESSAGE_MAP()

 // Vopros15 message handlers

void Vopros15: OnBnClickedRadio1 ()

{

 // TODO: Add your control notification handler code here

m_otvet=5;

}

void Vopros15: OnBnClickedRadio2 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros15: OnBnClickedRadio3 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros15: OnBnClickedRadio4 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

opoc 16.

 // Vopros16.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros16.h

 // Vopros16 dialog

IMPLEMENT_DYNAMIC (Vopros16, CDialog)

Vopros16: Vopros16 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros16:IDD, pParent)

m_otevt(0)

m_otvet(0)

{

}

Vopros16:~Vopros16 ()

{

}

void Vopros16: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros16, CDialog)

ON_BN_CLICKED (IDC_RADIO1, &Vopros16: OnBnClickedRadio1)

ON_BN_CLICKED (IDC_RADIO2, &Vopros16: OnBnClickedRadio2)

ON_BN_CLICKED (IDC_RADIO3, &Vopros16: OnBnClickedRadio3)

ON_BN_CLICKED (IDC_RADIO4, &Vopros16: OnBnClickedRadio4)

END_MESSAGE_MAP()

 // Vopros16 message handlers

void Vopros16: OnBnClickedRadio1 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros16: OnBnClickedRadio2 ()

{

 // TODO: Add your control notification handler code here

m_otvet=5;

}

void Vopros16: OnBnClickedRadio3 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros16: OnBnClickedRadio4 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

opoc 17.

 // Vopros17.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros17.h

 // Vopros17 dialog

IMPLEMENT_DYNAMIC (Vopros17, CDialog)

Vopros17: Vopros17 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros17:IDD, pParent)

m_otvet(0)

{

}

Vopros17:~Vopros17 ()

{

}

void Vopros17: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros17, CDialog)

ON_BN_CLICKED (IDC_RADIO1, &Vopros17: OnBnClickedRadio1)

ON_BN_CLICKED (IDC_RADIO2, &Vopros17: OnBnClickedRadio2)

ON_BN_CLICKED (IDC_RADIO3, &Vopros17: OnBnClickedRadio3)

ON_BN_CLICKED (IDC_RADIO4, &Vopros17: OnBnClickedRadio4)

END_MESSAGE_MAP()

 // Vopros17 message handlers

void Vopros17: OnBnClickedRadio1 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros17: OnBnClickedRadio2 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros17: OnBnClickedRadio3 ()

{

 // TODO: Add your control notification handler code here

m_otvet=5;

}

void Vopros17: OnBnClickedRadio4 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

opoc 18.

 // Vopros18.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros18.h

 // Vopros18 dialog

IMPLEMENT_DYNAMIC (Vopros18, CDialog)

Vopros18: Vopros18 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros18:IDD, pParent)

m_otvet(0)

{

}

Vopros18:~Vopros18 ()

{

}

void Vopros18: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros18, CDialog)

ON_BN_CLICKED (IDC_RADIO1, &Vopros18: OnBnClickedRadio1)

ON_BN_CLICKED (IDC_RADIO2, &Vopros18: OnBnClickedRadio2)

ON_BN_CLICKED (IDC_RADIO3, &Vopros18: OnBnClickedRadio3)

ON_BN_CLICKED (IDC_RADIO4, &Vopros18: OnBnClickedRadio4)

END_MESSAGE_MAP()

 // Vopros18 message handlers

void Vopros18: OnBnClickedRadio1 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros18: OnBnClickedRadio2 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros18: OnBnClickedRadio3 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros18: OnBnClickedRadio4 ()

{

 // TODO: Add your control notification handler code here

m_otvet=5;

}

opoc 19.

 // Vopros19.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros19.h

 // Vopros19 dialog

IMPLEMENT_DYNAMIC (Vopros19, CDialog)

Vopros19: Vopros19 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros19:IDD, pParent)

m_otvet(0)

{

}

Vopros19:~Vopros19 ()

{

}

void Vopros19: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros19, CDialog)

ON_BN_CLICKED (IDC_RADIO1, &Vopros19: OnBnClickedRadio1)

ON_BN_CLICKED (IDC_RADIO2, &Vopros19: OnBnClickedRadio2)

ON_BN_CLICKED (IDC_RADIO3, &Vopros19: OnBnClickedRadio3)

ON_BN_CLICKED (IDC_RADIO4, &Vopros19: OnBnClickedRadio4)

END_MESSAGE_MAP()

 // Vopros19 message handlers

void Vopros19: OnBnClickedRadio1 ()

{

 // TODO: Add your control notification handler code here

m_otvet=5;

}

void Vopros19: OnBnClickedRadio2 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros19: OnBnClickedRadio3 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros19: OnBnClickedRadio4 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

opoc 20.

 // Vopros20.cpp: implementation file

 //

#include stdafx.h

#include Kursovik.h

#include Vopros20.h

 // Vopros20 dialog

IMPLEMENT_DYNAMIC (Vopros20, CDialog)

Vopros20: Vopros20 (CWnd* pParent /*=NULL*/)

: CDialog (Vopros20:IDD, pParent)

m_otvet(0)

{

}

Vopros20:~Vopros20 ()

{

}

void Vopros20: DoDataExchange (CDataExchange* pDX)

{

CDialog: DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP (Vopros20, CDialog)

ON_BN_CLICKED (IDC_RADIO1, &Vopros20: OnBnClickedRadio1)

ON_BN_CLICKED (IDC_RADIO2, &Vopros20: OnBnClickedRadio2)

ON_BN_CLICKED (IDC_RADIO3, &Vopros20: OnBnClickedRadio3)

ON_BN_CLICKED (IDC_RADIO5, &Vopros20: OnBnClickedRadio5)

END_MESSAGE_MAP()

 // Vopros20 message handlers

void Vopros20: OnBnClickedRadio1 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros20: OnBnClickedRadio2 ()

{

 // TODO: Add your control notification handler code here

m_otvet=5;

}

void Vopros20: OnBnClickedRadio3 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

}

void Vopros20: OnBnClickedRadio5 ()

{

 // TODO: Add your control notification handler code here

m_otvet=0;

Allbest.ru


, , ..
PPT, PPTX PDF- .
.