{
cout<<"\n familia: ";
cout<<student1[i].familia;
cout<<"\n imya:";
cout<<student1[i].imya;
cout<<"\n otchestvo:";
cout<<student1[i].otchestvo;
cout<<"\n god_rozhdenia:";
cout<<student1[i].god_rozhdenia;
cout<<"\n mesyac_rozhdenia:";
cout<<student1[i].mesyac_rozhdenia;
cout<<"\n den_roshdenia:";
cout<<student1[i].den_roshdenia;
cout<<"\n budzhet_ili_contract:";
if (student1[i].budzhet_ili_contract==1)
{ cout<<"\n budzhetnic";
}
else if (student1[i].budzhet_ili_contract==0)
{cout<<"\n contractnic";
}
cout<<"\n nomer_telefona:";
cout<<student1[i].nomer_telefona;
cout<<"\n strana:";
cout<<student1[i].strana;
cout<<"\n gorod:";
cout<<student1[i].gorod;
cout<<"\n ylica:";
cout<<student1[i].ylica;
cout<<"\n dom(chislom):";
cout<<student1[i].dom;
cout<<"\n nomer_kvartiry:";
cout<<student1[i].nomer_kvartiry;
cout<<"\n Ocenki studenta:"<<student1[i].familia<<" "<<student1[i].imya<<" "<<student1[i].otchestvo;
cout<<endl;
for (j=0;j<kolvo_predmetov;j++)
for (k=0;k<kolvo_predmetov;k++)
{
cout<<predmety1[j].nazvanie_predmeta;
cout<<" ocenka:"<<student1[i].ball[k];
cout<<endl;
j++;
}
}
else
{
cout<<endl<<"\n takogo stydenta net v baze";
}}
}
void main()
{
cout<<"\n ---------------------------------------------------------------"<<endl;
cout<<"\n vvedite kolichestvo stydentov:";
cin>>kolvo_student;
cout<<"\n ---------------------------------------------------------------"<<endl;
cout<<"\n ---------------------------------------------------------------"<<endl;
cout<<"\n vvedite kolichestvo predmetov:";
cin>>kolvo_predmetov;
cout<<"\n ---------------------------------------------------------------"<<endl;
cout<<"\n vvedite nazvanie predmetov:";
for (j=0;j<kolvo_predmetov;j++)
{ cout<<"\n "<<j+1<<")";
cin>>ocenki[j].nazvanie_predmeta;
}
cout<<"\n ---------------------------------------------------------------"<<endl;
cout<<"\n vvedite dannye o studentax:";
cout<<"\n ---------------------------------------------------------------"<<endl;
for (i=0;i<kolvo_student;i++)
{
cout<<"\n STUDENT"<<i+1;
cout<<"\n ---------------------------------------------------------------"<<endl;
cout<<"\n familia: ";
cin>>base[i].familia;
cout<<"\n imya:";
cin>>base[i].imya;
cout<<"\n otchestvo:";
cin>>base[i].otchestvo;
cout<<"\n god_rozhdenia(chislom):";
cin>>base[i].god_rozhdenia;
cout<<"\n mesyac_rozhdenia(chislom):";
cin>>base[i].mesyac_rozhdenia;
cout<<"\n den_roshdenia(chislom):";
cin>>base[i].den_roshdenia;
cout<<"\n budzhet_ili_contract:";
cout<<"\n esli budzhet vvedite 1 , esli kontrakt to vvedite 0";
cout<<endl;
cin>>base[i].budzhet_ili_contract;
if ((base[i].budzhet_ili_contract!=1)&&(base[i].budzhet_ili_contract!=0))
{
cout<<"\n esli budzhet vvedite 1 , esli kontrakt to vvedite 0!!!!!";
}
if (base[i].budzhet_ili_contract==1)
{ budzhet++;
}
else if (base[i].budzhet_ili_contract==0)
{contract++;
}
cout<<"\n nomer_telefona(chislom):";
cin>>base[i].nomer_telefona;
cout<<"\n strana:";
cin>>base[i].strana;
cout<<"\n gorod:";
cin>>base[i].gorod;
cout<<"\n ylica:";
cin>>base[i].ylica;
cout<<"\n dom(chislom):";
cin>>base[i].dom;
cout<<"\n nomer_kvartiry(chislom):";
cin>>base[i].nomer_kvartiry;
for (j=0;j<kolvo_predmetov;j++)
for (k=0;k<kolvo_predmetov;k++)
{
cout<<"\n vvedite ocenky studenta po predmety:"<<ocenki[j].nazvanie_predmeta<<":";
cin>>base[i].ball[k];
if ((base[i].ball[k]<0)||(base[i].ball[k]<0)>100)
{
cout<<"\n ocenka ot 0 do 100 !!!";
cin>>base[i].ball[k];
}
j++;
}
}
for (i=0;i<kolvo_student;i++)
{
base[i].srednyi_ball=sortirovka(base[i].ball,kolvo_predmetov);
}
METKA:
cout<<"\n ---------------------------------------------------------------";
cout<<"\n vyberite punkt:";
cout<<"\n ---------------------------------------------------------------";
cout<<"\n 1:| sdelat sortirovky stydentov po yspevaimosty";
cout<<"\n 2:| vyvesti tablicy yspevaimosti stydenta po predmetam";
cout<<"\n 3:| vyvesti col-vo inogorodnyx studentov(spisok)";
cout<<"\n 4:| vyvesti col-vo gorodskih studentov(spisok)";
cout<<"\n 5:| vyvesti col-vo budzetnikow";
cout<<"\n 6:| vyvesti col-vo kontraktnikow";
cout<<"\n 7:| vyvesti spisok stydentov odnogo goda rozhdenya";
cout<<"\n 8:| naiti studenta v base i vyvesti vsy informaciy (1-6 pynkt)";
cout<<"\n ---------------------------------------------------------------";
cout<<"\n vvedite punkt:";
cin>>punkt;
if (punkt==1)
{
one(base);
}
if (punkt==2)
{
two (student1,ocenki);
}
if (punkt==3)
{
three(base);
}
if (punkt==4)
{
four(base);
}
if (punkt==5)
{
five(base);
}
if (punkt==6)
{
six(base);
}
if (punkt==7)
{
seven(base);
}
if (punkt==8)
{
eight(student1,ocenki);
}goto METKA;
getch();
}