ecpoae o peeco popecc

popa a e Microsoft Visual Studio 2008 c cooae oe MFC poep a o apeeco popecc, ce poooo ea popecc o epo paoae, c n epx eo popecc.

,
22.06.2011

74

cepco opaoa a Poccco eepa

eepaoe aeco o opaoa

ocapceoe opaoaeoe peee

ceo poeccoaoo opaoa

Ceepo-aac ocapce exec epce

pcoo poe

o ce exoo popapoa

ecpoae o peeco popecc

o:

ce 1-o pca ,

p C - 091

Cee P..

Capoo

2011

Aoa

ao pcoo poee ocaa popaa, acaa a e Microsoft Visual Studio 2008 c cooae oe MFC.

o o coca popa, oopa 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.

Coepae

  • Aoa
  • EEE
  • 1. eopeece oco pcooo poea
    • 1.1 eopeece oco papao Windows-poe c cooae oe MFC
      • 1.1.1 API
      • 1.1.2 oae AFX
      • 1.1.3 cooe
      • 1.1.4 Coae poe c oo Visual C++
      • 1.1.5 cpeaoe cpeco - ClassWizard (acep acco)
      • 1.1.6 peeco MFC oe
    • 2.1 Oe cee
    • 2.2 oaoe aaee
    • 2.3 Cea popa
    • 2.4 peoa o caoe.
    • pao popa eoxoo ae oo aaoe ooo aa: Kursovik.exe
    • 2.5 peoa execo oecee
  • aee
  • Cco cooao epap
  • poee 1
  • poee 2
  • EEE

c c e, o ceo poe cooc popaoo oecee oe co, papaoa poe Windows c cooae oo ooo aoo-o a (apep, a C) aeo apec. popac oe apa acc pee a peee caapx aa o coa oooo epeca. Peaa exoo ca cpaa oeo OLE opee o popaca ee oee coo pao. o oe pao popaca, ce copeee oop a C++ coepa ceae oe acco. ae oe a ce paec ec popa epec Windows oo ooac p popapoa cpeca oee cooo po, e oe o . a ce oo aeo poaec papaoa poe, ex co epec ooae, oeaec oepa exoo OLE aoece c aa ax. poe oo, cao poe poo oa popa, acax a C++. eco oo opoo oooo popa ee eo c aopo apax ox opae ace. Copeee eppoae cpeca papao poe Windows oo aoapoa poecc coa poe. oo coc eepaop poe. popac oeae a opoc eepaopa poe opeee coca poe - oepae oo oooo pe, exoo OLE, cpao cce. eepaop poe coac poee, oeaee peoa, peoca cxoe ec. oc a aoo, popac coe cpo papaaa co poe. ooe cpeca aoapoaoo coa poe pa Microsoft a po Visual C++, papaoa oe MFC (Microsoft Foundation Classes). MFC - aeae ae, coco apaee acaoo oooo paoe oa. ao ecoo aoox aee, oo aa xapaepc poe eo ec, caee op oeap. MFC AppWizard ooe coaa ooooe ooooe poe, a ae poe, e ee aoo oa, - eco eo coec aooa ae. pa ac poe popac pec coaa caocoeo. cxo ec poe cae oo ocoo, oopo o o ocooe.

1. eopeece oco pcooo poea

1.1 eopeece oco papao Windows-poe c cooae oe MFC

oea MFC coep o epapx acco, acax a C++. ee epe axoc acc CObject, oop coep pae , coee o pe oe popa peaaee, acoc, peocae opa o ee e o pe oe, aoc, cepaa.

Ec aae cca ccaec a oe, poo o acca CObject, o o cae pecope exa opeee peaoo a oea c oo apoca RUNTIME_CLASS(). Xo C++ eec exa RTTI, exa, peaoa MFC, aoo oee ee o pooeoc. a acc, poo o CObject, oe o apoc poep coe peee cocoe a aocec opa. o eco coec MFC p oae.

Cepaa - o exa, oo peopaoa eee cocoe oea oceoae oo a, oop oo ae acaec a c, occao cocoe oea oceoaeoo ooa, oo p e c ca. o ooe coxpa eee cocoe poe a ce, occaaa eo p ocee ace. eoope acc opoac eocpeceo o CObject. aoee poo coe cpe x c CCmdTarget, CFile, CDC, CGDIObject CMenu. acc CCmdTarget peaae opao cooe. acc CFile peaae pao c aa. acc CDC oeceae oep oeco cpoc. O oecax cpoc e oop ecoo oee. o acc e paec ce pa GDI. CGDIObject ec ao acco pax DGI-oeo, ax a ep, c, p pe. acc CMenu peaae a c e. O acca CCmdTarget opoaec oe a acc CWnd. O ec ao coa cex o oo, a acapee ("oe") aooe, a ae pae ee pae. aoee poo coe poo acco ec CFrameWnd. a e aee, oce popa aoe oo coaec c oo eo oo acca. O acca CCmdTarget, epe acc CWinThread, opoaec, aepoe, ece aoee ax acco, opaee oopo MFC-popaax pocxo ap: CWinApp. o o aeax acco, oco peaae coa caoo poe.

1.1.1 API

oco , aex MFC-popae, c ea ooo acco, opeeex oee. oco API oc epe -e MFC. e e eee, cea oo opaac API ap. oa o ae eoxo, o ce e oce cae oee cooa -e MFC.

1.1.2 oae AFX

oee ec p oax . ce o aac c peca Afx. oa MFC oo papaaaac, o poe aac AFX, Application Framework. oce pa cecex ee AFX a epepaoaa MFC, o peee aae coxpaoc o ox eaopax oe aax ao. apep, oe aco coec AfxMessageBox(), oopaaa apaee opeeeoe oo cooe. o ec e- MessageBox(). a opao, aco oae epepac -ea.

ce MFC-popa a aooo a AFXWIN.H. e, a ae pax cooaex aax, coepac oca acco, cpp, epeex px oeo MFC. O aoaec oae oco aooox ao, oocxc MFC, o ce WINDOWS.H, oopo opeee ce Windows API pe oe, oope coc p paoo popapoa a C "co" API. Windows aoece c popao, oca e cooe.

1.1.3 cooe

ce poe Windows o opaoa a aae cooe (oo p WinMain()). o e aoe eopaoaoe cooee oo eeo oepe cooe aoo poe epeao aa Windows, oopa ae ae oa popa c a cooee aece apea. paox Windows-popaax eoxoo caocoeo coaa apoa ao . p cooa MFC o ae oec aoaec. Oao ao o, o cooe ce e cece. O ec eoeeo ac oo poe Windows.

1.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.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.1.5.1 Coae ooo acca

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.1.5.2 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.1.5.3 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.1.5.4 poep DDX/DDV RFX.

aeo poa popac pao c aoo ae. O oo ca o aoox aee epeee. oa ooae peape o aoox aee, poep DDV poep eee ae op o apeex ae. ae poep DDX aoaec op coepoe oe aoox aee pae ee ax acca. aoopo, oa poee ee ee ax acca, pae o aooo ae, poep DDX o cpa oopa oe ae oe a pae oepa. poecc oe opao cooe oe oaac epecp co, o, e e eee, e o ceoa ce Windows-popa. cac, p cooa oe MFC oco acx eae cp o popaca, xo pooa eo pccoa popae. pocee cae popaa, acaa c oo MFC, coep a acca, opoaee o acco epapx oe: acc, peaae coa poe, acc, peaae coa oa. p coa, coa ao popa eoxoo opo o acc o CWinApp, a po - o CFrameWnd. a acca oae o popa. poe coa eox acco, popae ae oa opaoaa opaoa cex cooe, ocax o Windows. ao pepe popaa ee eo oeoo e eae, oo oea a aoe cooee e o. MFC opaoae ce cooe, oope ac e epec. e e eee, o pepe pcce apa oo a cooe, poco apa cooe. oe paccop ee opoee. a e oaoc, MFC - o ao aop (oea) acco, acax a e C++ peaaex poe cope poecca popapoa Windows. oea coep oopoe epapx acco, aca ooo 200 eo. O a oooc coaa Windows-poe a ae oeo-opepoaoo oxoa. C o pe popaca, MFC pecae coo apac, a ocoe oopoo oo ca popa Windows.

1.1.6 peeco MFC oe

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.

O ocox peec pao c MFC ec oooc oopaoo cooa ooo oo e oa. a a oea coep oo eeo, ox cex Windows-poe, e eoxooc a pa ca x aoo. eco oo x oo poco aceoa (oop o oeo-opepoaoo popapoa). poe oo, epec, oeceae oeo, paec eac o opex eae, eo peax. oo popa, acae a ocoe MFC, o eo aapoa o epc Windows ( oe o oca popa, acax o eoa).

Ee o cece peeco MFC ec poee aoec c pa popa epeco (API) Windows. oe poee aoece c Windows epe API, oopoe coep ecoo co . e paep API ape o o eo eo. aac, ae coo poce, a oee ac API ca p c po! o oco oea MFC oee (e ac) API oec opaoaoe oeco acco, epeco caoc aeo ee pa. oco MFC pecae coo aop acco, acax a e C++, oo popa, acae c cooae MFC, o o e pe popaa a C++. oo eoxoo ae cooec a. aaa eoxoo e coaa cocee acc, oa p aceoa e epeopee pae . Xo popa, coe oe MFC, oo e coepa co ceecx eeo apceaa C++, x aca e e eee pec coe a ao oac[7].

2. Ocae popaoo poa

2.1 Oe cee

aa popaa acaa a e Microsoft Visual Studio 2008.

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.

2.3 Cea popa

popaa aaec Kursovk. aa popaa papaoaa poep a ooae. p ace popa a epo oe (Pco 1) ec oa aao eca.

Pco 1 - popaa ecpoa, epoe oo.

p aa o aa ec e pecaeo o op aa opoco. x 18 opoco e o pa oe 2 e o eo ca.

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

o ooa ecpoa, e pecaeo epoe oo, o e c oeco pee opoco poeax(Pco 2).

Pco 2 - popaa ecpoa. poe ec.

aa 2- Cea papaoax acco

acca

e acca

Cocoa oca

aaee

aaee opax apaepo

CKursovikDlg

rezilt

op

o oee a

Vopros1

m_otvet

op

ae o-o

ao a oe

Vopros2

m_otvet

op

ae o-o

ao a oe

Vopros3

m_otvet

op

ae o-o

ao a oe

Vopros4

m_otvet

op

ae o-o

ao a oe

Vopros5

m_otvet

op

ae o-o

ao a oe

Vopros10

m_otvet

op

ae o-o

ao a oe

Vopros11

m_otvet

op

ae o-o

ao a oe

Vopros12

m_otvet

op

ae o-o

ao a oe

Vopros13

m_otvet

op

ae o-o

ao a oe

Vopros14

m_otvet

op

ae o-o

ao a oe

Vopros15

m_otvet

op

ae o-o

ao a oe

Vopros14

m_otvet

op

ae o-o

ao a oe

Vopros16

m_otvet

op

ae o-o

ao a oe

Vopros17

m_otvet

op

ae o-o

ao a oe

Vopros18

m_otvet

op

ae o-o

ao a oe

Vopros19

m_otvet

op

ae o-o

ao a oe

Vopros20

m_otvet

op

ae o-o

ao a oe

2.4 peoa o caoe

pao popa eoxoo ae oo aaoe ooo aa: Kursovik.exe

2.5 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.

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;

}




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

    [733,5 K], 29.06.2011

  • Windows oee, aaoaoe cee oaoa Microsoft Visual Studio 2008 a e C++ c cooae oe MFC. oaee oa aac oe. e cee, ayc oe, oeca cyya, aoa c oao.

    [1,2 M], 12.12.2011

  • , " " a e C++ Micrsft Visual Studio ae e MFC. Windows-.

    [954,4 K], 25.06.2011

  • - . Visual Studio.NET. Microsoft Visual Studio 2010. C# , -. . .

    [2,1 M], 11.09.2014

  • Microsoft Visual Studio 2008, C++. . . . .

    [585,5 K], 24.03.2009

  • Microsoft Visual Studio, , . Microsoft Visual C++ 2008.

    [2,5 M], 22.06.2011

  • Microsoft Visual C++ Microsoft Developer Studio 6.0. . Visual C++. . "Sort". .

    [46,0 K], 27.11.2007

  • Windows Forms Microsoft Visual Studio 2008. "" , , .

    [2,2 M], 28.06.2011

  • Microsoft Visual Studio, ++. . . .

    [814,3 K], 26.05.2013

  • # Microsoft Visual Studio 2008: "" , , .

    [2,4 M], 05.01.2011