با سلام خدمت شما دوستان
سورس برنامه 100 دانش آموز رو برای شما آماده کردم با امکاناتی عالی و خوب
#include <iostream.h>
#include <conio.h>
struct unit
{
float grade[4];
int vahed[4];
};//end of struct unit
// ________________________paiane moshakhasate no'e dars_______________________
struct address
{
char cit[10],str[15],lane[20];
int pel;
double tel;
};//end of struct address
// _________________________paiane moshakhasate address________________________
struct student
{
char n[10],ln[15],fn[15];
double nsh;
address add;
unit uni;
};//end of struct student
//________________________paiane moshakhasate danesh amoz______________________
int main()
{
student st[5];
char b[10];
int sum=0,j,i,mn=0,l,m,n;
float ave=0;
cout<<"2 mo'adele morede nazare khod ra az kochik be bozorg entekhab konid"<<endl;
cin>>m>>n;
for (j=0;j<5;j++)
{
cout<<"lotfan name danesh amoze "<<j+1<<" ra vared konid"<<endl;
cin>>st[j].n;
cout<<"lotfan name khanevadegie danesh amoze "<<j+1<<" ra vared konid"<<endl;
cin>>st[j].ln;
cout<<"lotfan name pedare danesh amoze "<<j+1<<" ra vared konid"<<endl;
cin>>st[j].fn;
cout<<"lotfan shomare shenasnameie danesh amoze "<<j+1<<" ra vared konid"<<endl;
cin>>st[j].nsh;
cout<<"lotfan name shahre danesh amoze "<<j+1<<" ra vared konid"<<endl;
cin>>st[j].add.cit;
cout<<"lotfan name khiabane danesh amoze "<<j+1<<" ra vared konid"<<endl;
cin>>st[j].add.str;
cout<<"lotfan name kocheie danesh amoze "<<j+1<<" ra vared konid"<<endl;
cin>>st[j].add.lane;
cout<<"lotfan pelake khaneie danesh amoze "<<j+1<<" ra vared konid"<<endl;
cin>>st[j].add.pel;
cout<<"lotfan shomare telephone danesh amoze "<<j+1<<" ra vared konid"<<endl;
cin>>st[j].add.tel;
//___________________paiane gereftane moshakhasate danesh amoz________________
for (i=0;i<4;i++)
{
cout<<"aval nomre va dovom tedad vahede darse "<<i+1<<" danesh amoze "<<j+1<<" ra vared konid"<<endl;
cin>>st[j].uni.grade[i]>>st[j].uni.vahed[i];
//____________________ paiane gereftane nomarate danesh amoz _________________
sum+=(st[j].uni.grade[i]*st[j].uni.vahed[i]);
mn+=st[j].uni.vahed[i];
}// end of for i
ave=sum/mn;
cout<<"Miangin = "<<ave<<endl;
if((ave>=m)&&(ave<=n))
{
cout<<"name = "<<st[j].n<<endl;
cout<<"name khanevadegi = "<<st[j].ln<<endl;
cout<<"name pedar = "<<st[j].fn<<endl;
cout<<"shomare shenasname = "<<st[j].nsh<<endl;
cout<<"name shahr = "<<st[j].add.cit<<endl;
cout<<"name khiaban = "<<st[j].add.str<<endl;
cout<<"name koche = "<<st[j].add.lane<<endl;
cout<<"shomare pelake = "<<st[j].add.pel<<endl;
cout<<"shomare telephon = "<<st[j].add.tel<<endl;
}// end of if ave
mn=0;
sum=0;
ave=0;
}// end of for j
//_______________________paiane mohasebeie amaliate miangin___________________
cout<<"name morede nazare khod ra vared konid"<<endl;
for (l=0;(l<10)&&(b[l]=cin.get())!='\0';l++)
cin>>b[l];
for (j=0;j<5;j++)
if (b==st[j].n)
{
cout<<"name = "<<st[j].n<<endl;
cout<<"name khanevadegi = "<<st[j].ln<<endl;
cout<<"name pedar = "<<st[j].fn<<endl;
cout<<"shomare telephon = "<<st[j].nsh<<endl;
cout<<"name shahr = "<<st[j].add.cit<<endl;
cout<<"name khiaban = "<<st[j].add.str<<endl;
cout<<"name koche = "<<st[j].add.lane<<endl;
cout<<"shomare pelake = "<<st[j].add.pel<<endl;
cout<<"shomare telephon = "<<st[j].add.tel<<endl;
}// end of if b
//_______________________paiane jostejoie name danesh amoz____________________
cout<<endl;
//_________________paiane barnameie moshakhasate 100 danesh amoz______________
getch();
return 0;
}//end of int main