Академический Документы
Профессиональный Документы
Культура Документы
//--------------------------------------------------------------------------#include <vcl.h>
#pragma hdrstop
#include "Unit5.h"
#include "Unit6.h"
//--------------------------------------------------------------------------#pragma package(smart_init)
#pragma resource "*.dfm"
TForm5 *Form5;
int d=0;
//--------------------------------------------------------------------------__fastcall TForm5::TForm5(TComponent* Owner)
: TForm(Owner)
{
Form5->Color=clTeal;
}
//--------------------------------------------------------------------------void __fastcall TForm5::Button1Click(TObject *Sender)
{
d=0;
if(Form5->RadioGroup1->ItemIndex==2)
d++;
if(Form5->RadioGroup2->ItemIndex==1)
d++;
if(Form5->RadioGroup3->ItemIndex==0)
d++;
if(Form5->RadioGroup4->ItemIndex==3)
d++;
if(Form5->RadioGroup5->ItemIndex==3)
d++;
ShowMessage("Ai obtinut nota "+IntToStr(d+5));
d=0;
}
//--------------------------------------------------------------------------void __fastcall TForm5::Button2Click(TObject *Sender)
{
Form6->Show();
Form5->Hide();
}
Form6
//--------------------------------------------------------------------------#include <vcl.h>
#pragma hdrstop
#include "Unit6.h"
#include "Unit7.h"
//--------------------------------------------------------------------------#pragma package(smart_init)
#pragma resource "*.dfm"
TForm6 *Form6;
int d=0;
//--------------------------------------------------------------------------__fastcall TForm6::TForm6(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
Form7
//--------------------------------------------------------------------------#include <vcl.h>
#pragma hdrstop
#include "Unit7.h"
#include "Unit8.h"
//--------------------------------------------------------------------------#pragma package(smart_init)
#pragma resource "*.dfm"
TForm7 *Form7;
int d=0;
//--------------------------------------------------------------------------__fastcall TForm7::TForm7(TComponent* Owner)
: TForm(Owner)
{
}
//--------------------------------------------------------------------------void __fastcall TForm7::FormCreate(TObject *Sender)
{
Form7->Color=clGreen;
}
//--------------------------------------------------------------------------void __fastcall TForm7::Button1Click(TObject *Sender)
{ d=0;
if(Form7->RadioGroup1->ItemIndex==1)
d++;
if(Form7->RadioGroup2->ItemIndex==0)
d++;
if(Form7->RadioGroup3->ItemIndex==2)
d++;
if(Form7->RadioGroup4->ItemIndex==2)
d++;
ShowMessage("Ai obtinut nota "+IntToStr(d+6));
d=0;
}
//--------------------------------------------------------------------------void __fastcall TForm7::Button2Click(TObject *Sender)
{
Form8->Show();
Form7->Hide();
}
//---------------------------------------------------------------------------
Form8
//--------------------------------------------------------------------------#include <vcl.h>
#pragma hdrstop
#include "Unit8.h"
#include "Unit9.h"
//--------------------------------------------------------------------------#pragma package(smart_init)
#pragma resource "*.dfm"
TForm8 *Form8;
int d=0;
//--------------------------------------------------------------------------__fastcall TForm8::TForm8(TComponent* Owner)
: TForm(Owner)
{
}
//--------------------------------------------------------------------------void __fastcall TForm8::FormCreate(TObject *Sender)
{
Form8->Color=clSkyBlue;
}
//--------------------------------------------------------------------------void __fastcall TForm8::Button1Click(TObject *Sender)
{
d=0;
if(Form8->RadioGroup1->ItemIndex==1)
d++;
if(Form8->RadioGroup2->ItemIndex==2)
d++;
if(Form8->RadioGroup3->ItemIndex==0)
d++;
if(Form8->RadioGroup4->ItemIndex==3)
d++;
if(Form8->RadioGroup5->ItemIndex==2)
d++;
ShowMessage("Ai obtinut nota "+IntToStr(d+5));
d=0;
}
//--------------------------------------------------------------------------void __fastcall TForm8::Button2Click(TObject *Sender)
{
Form9->Show();
Form8->Hide();
}
//---------------------------------------------------------------------------
Form9
//--------------------------------------------------------------------------#include <vcl.h>
#pragma hdrstop
#include "Unit9.h"
//--------------------------------------------------------------------------#pragma package(smart_init)