主题:学生挡案管理系统原代码1-1
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(current->XH==a&¤t->NL==c&&!strcmp(current->XB,d)&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&¤t->NL==c&&!strcmp(current->XB,d)&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(current->XH==a&¤t->NL==c&&!strcmp(current->XB,d)&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&¤t->NL==c&&!strcmp(current->XB,d))
cout<<current<<endl;
current=current->next;
}
}
}
}
}
else
{
if(strcmp(e,"0"))//宿舍
{
if(strcmp(h,"0"))//班级
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(current->XH==a&¤t->NL==c&&!strcmp(current->SS,e)&&!strcmp(current->BJ,h)&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&¤t->NL==c&&!strcmp(current->SS,e)&&!strcmp(current->BJ,h)&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(current->XH==a&¤t->NL==c&&!strcmp(current->SS,e)&&!strcmp(current->BJ,h)&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&¤t->NL==c&&!strcmp(current->SS,e)&&!strcmp(current->BJ,h))
cout<<current<<endl;
current=current->next;
}
}
}
else
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(current->XH==a&¤t->NL==c&&!strcmp(current->SS,e)&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&¤t->NL==c&&!strcmp(current->SS,e)&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(current->XH==a&¤t->NL==c&&!strcmp(current->SS,e)&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&¤t->NL==c&&!strcmp(current->SS,e))
cout<<current<<endl;
current=current->next;
}
}
}
}
else
{
if(strcmp(h,"0"))//班级
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(current->XH==a&¤t->NL==c&&!strcmp(current->BJ,h)&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&¤t->NL==c&&!strcmp(current->BJ,h)&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(current->XH==a&¤t->NL==c&&!strcmp(current->BJ,h)&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&¤t->NL==c&&!strcmp(current->BJ,h))
cout<<current<<endl;
current=current->next;
}
}
}
else
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(current->XH==a&¤t->NL==c&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&¤t->NL==c&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(current->XH==a&¤t->NL==c&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&¤t->NL==c)
cout<<current<<endl;
current=current->next;
}
}
}
}
}
}
else
{
if(strcmp(d,"0"))//性别
{
if(strcmp(e,"0"))//宿舍
{
if(strcmp(h,"0"))//班级
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(current->XH==a&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&&!strcmp(current->BJ,h)&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&&!strcmp(current->BJ,h)&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(current->XH==a&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&&!strcmp(current->BJ,h)&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&&!strcmp(current->BJ,h))
cout<<current<<endl;
current=current->next;
}
}
}
else
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(current->XH==a&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(current->XH==a&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&&!strcmp(current->XB,d)&&!strcmp(current->SS,e))
cout<<current<<endl;
current=current->next;
}
}
}
}
else
{
if(strcmp(h,"0"))//班级
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(current->XH==a&&!strcmp(current->XB,d)&&!strcmp(current->BJ,h)&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&&!strcmp(current->XB,d)&&!strcmp(current->BJ,h)&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(current->XH==a&&!strcmp(current->XB,d)&&!strcmp(current->BJ,h)&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&&!strcmp(current->XB,d)&&!strcmp(current->BJ,h))
cout<<current<<endl;
current=current->next;
}
}
}
else
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(current->XH==a&&!strcmp(current->XB,d)&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&&!strcmp(current->XB,d)&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(current->XH==a&&!strcmp(current->XB,d)&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&&!strcmp(current->XB,d))
cout<<current<<endl;
current=current->next;
}
}
}
}
}
else
{
if(strcmp(e,"0"))//宿舍
{
if(strcmp(h,"0"))//班级
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(current->XH==a&&!strcmp(current->SS,e)&&!strcmp(current->BJ,h)&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&&!strcmp(current->SS,e)&&!strcmp(current->BJ,h)&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(current->XH==a&&!strcmp(current->SS,e)&&!strcmp(current->BJ,h)&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&&!strcmp(current->SS,e)&&!strcmp(current->BJ,h))
cout<<current<<endl;
current=current->next;
}
}
}
else
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(current->XH==a&&!strcmp(current->SS,e)&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&&!strcmp(current->SS,e)&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(current->XH==a&&!strcmp(current->SS,e)&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&&!strcmp(current->SS,e))
cout<<current<<endl;
current=current->next;
}
}
}
}
else
{
if(strcmp(h,"0"))//班级
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(current->XH==a&&!strcmp(current->BJ,h)&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&&!strcmp(current->BJ,h)&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(current->XH==a&&!strcmp(current->BJ,h)&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&&!strcmp(current->BJ,h))
cout<<current<<endl;
current=current->next;
}
}
}
else
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(current->XH==a&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(current->XH==a&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(current->XH==a)
cout<<current<<endl;
current=current->next;
}
}
}
}
}
}
}
}
else
{
if(strcmp(b,"0"))//姓名
{
if(c)//年龄
{
if(strcmp(d,"0"))//性别
{
if(strcmp(e,"0"))//宿舍
{
if(strcmp(h,"0"))//班级
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&¤t->BJ==h&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&¤t->BJ==h&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&¤t->BJ==h&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&¤t->BJ==h)
cout<<current<<endl;
current=current->next;
}
}
}
else
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->XB,d)&&!strcmp(current->SS,e))
cout<<current<<endl;
current=current->next;
}
}
}
}
else
{
if(strcmp(h,"0"))//班级
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->XB,d)&¤t->BJ==h&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->XB,d)&¤t->BJ==h&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->XB,d)&¤t->BJ==h&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->XB,d)&¤t->BJ==h)
cout<<current<<endl;
current=current->next;
}
}
}
else
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->XB,d)&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->XB,d)&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->XB,d)&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->XB,d))
cout<<current<<endl;
current=current->next;
}
}
}
}
}
else
{
if(strcmp(e,"0"))//宿舍
{
if(strcmp(h,"0"))//班级
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->SS,e)&¤t->BJ==h&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->SS,e)&¤t->BJ==h&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->SS,e)&&!strcmp(current->BJ,h)&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->SS,e)&&!strcmp(current->BJ,h))
cout<<current<<endl;
current=current->next;
}
}
}
else
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->SS,e)&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->SS,e)&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->SS,e)&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->SS,e))
cout<<current<<endl;
current=current->next;
}
}
}
}
else
{
if(strcmp(h,"0"))//班级
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->BJ,h)&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->BJ,h)&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->BJ,h)&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&¤t->NL==c&&!strcmp(current->BJ,h))
cout<<current<<endl;
current=current->next;
}
}
}
else
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&¤t->NL==c&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&¤t->NL==c&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&¤t->NL==c&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&¤t->NL==c)
cout<<current<<endl;
current=current->next;
}
}
}
}
}
}
else
{
if(strcmp(d,"0"))//性别
{
if(strcmp(e,"0"))//宿舍
{
if(strcmp(h,"0"))//班级
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&&!strcmp(current->BJ,h)&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&&!strcmp(current->BJ,h)&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&&!strcmp(current->BJ,h)&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&&!strcmp(current->BJ,h))
cout<<current<<endl;
current=current->next;
}
}
}
else
{
if(f)//成绩的下限
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&¤t->ZHCJ>f&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&¤t->ZHCJ>f)
cout<<current<<endl;
current=current->next;
}
}
else
{
if(g)//成绩的上限
{
if(!strcmp(current->XM,b)&&!strcmp(current->XB,d)&&!strcmp(current->SS,e)&¤t->ZHCJ<g)
cout<<current<<endl;
current=current->next;
}
else
{
if(!strcmp(current->XM,b)&&!strcmp(current->XB,d)&&!strcmp(current->SS,e))
cout<<current<<endl;
current=current->next;
}
}
}
}
else
续学生挡案管理系统原代码1-2