Смекни!
smekni.com

Разработка сервисных программ для обслуживания администрации деканата учебной части вуза коменданта (стр. 5 из 5)

{

cout<<"&bsol;n familia: ";

cout<<student1[i].familia;

cout<<"&bsol;n imya:";

cout<<student1[i].imya;

cout<<"&bsol;n otchestvo:";

cout<<student1[i].otchestvo;

cout<<"&bsol;n god_rozhdenia:";

cout<<student1[i].god_rozhdenia;

cout<<"&bsol;n mesyac_rozhdenia:";

cout<<student1[i].mesyac_rozhdenia;

cout<<"&bsol;n den_roshdenia:";

cout<<student1[i].den_roshdenia;

cout<<"&bsol;n budzhet_ili_contract:";

if (student1[i].budzhet_ili_contract==1)

{ cout<<"&bsol;n budzhetnic";

}

else if (student1[i].budzhet_ili_contract==0)

{cout<<"&bsol;n contractnic";

}

cout<<"&bsol;n nomer_telefona:";

cout<<student1[i].nomer_telefona;

cout<<"&bsol;n strana:";

cout<<student1[i].strana;

cout<<"&bsol;n gorod:";

cout<<student1[i].gorod;

cout<<"&bsol;n ylica:";

cout<<student1[i].ylica;

cout<<"&bsol;n dom(chislom):";

cout<<student1[i].dom;

cout<<"&bsol;n nomer_kvartiry:";

cout<<student1[i].nomer_kvartiry;

cout<<"&bsol;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<<"&bsol;n takogo stydenta net v baze";

}}

}

void main()

{

cout<<"&bsol;n ---------------------------------------------------------------"<<endl;

cout<<"&bsol;n vvedite kolichestvo stydentov:";

cin>>kolvo_student;

cout<<"&bsol;n ---------------------------------------------------------------"<<endl;

cout<<"&bsol;n ---------------------------------------------------------------"<<endl;

cout<<"&bsol;n vvedite kolichestvo predmetov:";

cin>>kolvo_predmetov;

cout<<"&bsol;n ---------------------------------------------------------------"<<endl;

cout<<"&bsol;n vvedite nazvanie predmetov:";

for (j=0;j<kolvo_predmetov;j++)

{ cout<<"&bsol;n "<<j+1<<")";

cin>>ocenki[j].nazvanie_predmeta;

}

cout<<"&bsol;n ---------------------------------------------------------------"<<endl;

cout<<"&bsol;n vvedite dannye o studentax:";

cout<<"&bsol;n ---------------------------------------------------------------"<<endl;

for (i=0;i<kolvo_student;i++)

{

cout<<"&bsol;n STUDENT"<<i+1;

cout<<"&bsol;n ---------------------------------------------------------------"<<endl;

cout<<"&bsol;n familia: ";

cin>>base[i].familia;

cout<<"&bsol;n imya:";

cin>>base[i].imya;

cout<<"&bsol;n otchestvo:";

cin>>base[i].otchestvo;

cout<<"&bsol;n god_rozhdenia(chislom):";

cin>>base[i].god_rozhdenia;

cout<<"&bsol;n mesyac_rozhdenia(chislom):";

cin>>base[i].mesyac_rozhdenia;

cout<<"&bsol;n den_roshdenia(chislom):";

cin>>base[i].den_roshdenia;

cout<<"&bsol;n budzhet_ili_contract:";

cout<<"&bsol;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<<"&bsol;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<<"&bsol;n nomer_telefona(chislom):";

cin>>base[i].nomer_telefona;

cout<<"&bsol;n strana:";

cin>>base[i].strana;

cout<<"&bsol;n gorod:";

cin>>base[i].gorod;

cout<<"&bsol;n ylica:";

cin>>base[i].ylica;

cout<<"&bsol;n dom(chislom):";

cin>>base[i].dom;

cout<<"&bsol;n nomer_kvartiry(chislom):";

cin>>base[i].nomer_kvartiry;

for (j=0;j<kolvo_predmetov;j++)

for (k=0;k<kolvo_predmetov;k++)

{

cout<<"&bsol;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<<"&bsol;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<<"&bsol;n ---------------------------------------------------------------";

cout<<"&bsol;n vyberite punkt:";

cout<<"&bsol;n ---------------------------------------------------------------";

cout<<"&bsol;n 1:| sdelat sortirovky stydentov po yspevaimosty";

cout<<"&bsol;n 2:| vyvesti tablicy yspevaimosti stydenta po predmetam";

cout<<"&bsol;n 3:| vyvesti col-vo inogorodnyx studentov(spisok)";

cout<<"&bsol;n 4:| vyvesti col-vo gorodskih studentov(spisok)";

cout<<"&bsol;n 5:| vyvesti col-vo budzetnikow";

cout<<"&bsol;n 6:| vyvesti col-vo kontraktnikow";

cout<<"&bsol;n 7:| vyvesti spisok stydentov odnogo goda rozhdenya";

cout<<"&bsol;n 8:| naiti studenta v base i vyvesti vsy informaciy (1-6 pynkt)";

cout<<"&bsol;n ---------------------------------------------------------------";

cout<<"&bsol;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();

}