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