亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? frame.h

?? 一個數據結構的大作業
?? H
?? 第 1 頁 / 共 3 頁
字號:
  {
   pt=GetAt(MainHead,i);
   if(strcmp(pt->Begin,Begin)==0)
   {
    padd=(TRAIN*)malloc(sizeof(TRAIN));
    memcpy(padd,pt,sizeof(TRAIN));
    if(findcount==0)
    {
     FindHead=CreatList((*padd));
     FindLast=FindHead;
    }
    else
    {
     ptrain=AddTail(FindLast,*padd);
     FindLast=ptrain;
    }
    findcount++;
   }
  }
  if(findcount>0)
  {
   if(findcount>13) showcount=13;
   else showcount=findcount;
   TrainListShowData(3,306,FindHead,
		     NowIndexInList2,showcount,
		     GIRD_TEXTCOLOR2);
  }
  GoThroughList(1,FindHead);
  UpdateStaticsData(451,280,1);
  if(tab)
    selcolor=SLEEP_COLOR;
  else
    selcolor=ACTIVE_COLOR;
  SetTrainListSelBar(3,293,447,selcolor,Index2,13);
  SetTrainListScrollBar(438,306,447,306+13*13,
			NowIndexInList2+13,findcount);
 }
}
void Delete()
{
 int nowposition;
 int showcount;
 int temp;
 //int yoffset=Index1*13;
 if(!tab) return;
 if(totalcount>0)
 {
  nowposition=Index1+NowIndexInList1;
  if(MessageBox(200,160,400,240,
		"Delete","Are you sure?",RED,0)==1)
  {
   DeleteAt(&MainHead,nowposition);

   Modified=1;

   totalcount--;
   GoThroughList(0,MainHead);
   UpdateStaticsData(451,29,0);
   if(NowIndexInList1>0)
   {
    temp=totalcount-NowIndexInList1;
    if(temp<17)
     NowIndexInList1--;
    showcount=17;
   }
   else
   {
    if(totalcount>17) showcount=17;
    else
    {
     showcount=totalcount;
     ClearGirdText(3,42,447,17);
     if((Index1+1)>=totalcount)
     {
      if(Index1==0);
      else Index1--;
     }
    }
   }
   SetTrainListSelBar(3,42,447,ACTIVE_COLOR,Index1,17);
   SetTrainListScrollBar(438,55,447,55+17*13,
			 NowIndexInList1+17,totalcount);
   TrainListShowData(3,55,MainHead,
		     NowIndexInList1,showcount,
		     GIRD_TEXTCOLOR1);
  }
 }
}
void Modify()
{
 int nowindex;
 TRAIN *ptrain;
 int yoffset=Index1*13;
 int showcount;
 if(!tab) return;
 if(totalcount>0)
 {
  nowindex=Index1+NowIndexInList1;
  ptrain=GetAt(MainHead,nowindex);
  strcpy(tempTrainNumber,ptrain->TrainNumber);
  strcpy(tempKind,ptrain->Kind);
  strcpy(tempBeginHour,ptrain->BeginHour);
  strcpy(tempBeginMinute,ptrain->BeginMinute);
  strcpy(tempBegin,ptrain->Begin);
  strcpy(tempEndHour,ptrain->EndHour);
  strcpy(tempEndMinute,ptrain->EndMinute);
  strcpy(tempEnd,ptrain->End);
  strcpy(tempCost,ptrain->Cost);

  if(GroupBars(3,42+13+yoffset,447-10)==1)
  {
   strcpy(ptrain->TrainNumber,tempTrainNumber);
   strcpy(ptrain->Kind,tempKind);
   strcpy(ptrain->BeginHour,tempBeginHour);
   strcpy(ptrain->BeginMinute,tempBeginMinute);
   strcpy(ptrain->Begin,tempBegin);
   strcpy(ptrain->EndHour,tempEndHour);
   strcpy(ptrain->EndMinute,tempEndMinute);
   strcpy(ptrain->End,tempEnd);
   strcpy(ptrain->Cost,tempCost);
   Modified=1;
  }
 if(totalcount<17)
  showcount=totalcount;
 else
  showcount=17;
 setfillstyle(SOLID_FILL,GIRD_BACKCOLOR);
 bar(3,42+13+yoffset,447-10,42+13+yoffset+12);
 SetTrainListSelBar(3,42,447,ACTIVE_COLOR,Index1,17);
 TrainListShowData(3,55,MainHead,
		   NowIndexInList1,showcount,
		   GIRD_TEXTCOLOR1);
 }
}
void Exit()
{
 DeleteAll(&MainHead);
 DeleteAll(&FindHead);
 closegraph();
 exit(0);
}
void ClearGirdText(int x1,int y1,int x2,int CountPerPage)
{
 setfillstyle(SOLID_FILL,GIRD_BACKCOLOR);
 bar(x1,y1+13,x2-10,y1+CountPerPage*13+1+12);
}
void Save()
{
 if(strlen(FileName)==0) SaveAsBox();
 else
 {
  if(totalcount!=0) SaveList(MainHead,FileName);
 }
 Modified=0;
}
void New(int Load)
{
 int i,k;
 if(Modified)
 {
  if(MessageBox(200,160,400,240,
		"New","Save current file?",RED,0)==1)
   SaveAsBox();
 }
 for(i=0;i<2;i++)
  for(k=0;k<5;k++)
   statisticsdata[i][k]=0;

 DeleteAll(&MainHead);
 DeleteAll(&FindHead);
 totalcount=0;
 findcount=0;
 Modified=0;

 tab=1;
 Index1=0;
 Index2=0;
 NowIndexInList1=0;
 NowIndexInList2=0;

 DrawCaptain(0,29,450,
	     FRAME_COLOR,ACTIVE_COLOR,
	     "Main list",1);
 DrawCaptain(451,29,639,
	     FRAME_COLOR,ACTIVE_COLOR,
	     "Main statistics",1);
 DrawCaptain(0,280,450,
	     FRAME_COLOR,SLEEP_COLOR,
	     "Find list",0);
 DrawCaptain(451,280,639,
	     FRAME_COLOR,SLEEP_COLOR,
	     "Find statistics",0);

 ClearGirdText(3,42,447,17);
 SetTrainListSelBar(3,42,447,ACTIVE_COLOR,Index1,17);
 SetTrainListScrollBar(438,55,447,55+17*13,
		       NowIndexInList1+17,totalcount);
 ClearGirdText(3,293,447,13);
 SetTrainListSelBar(3,293,447,SLEEP_COLOR,Index2,13);
 SetTrainListScrollBar(438,306,447,306+13*13,
		       NowIndexInList2+13,findcount);

 if(!Load) ClearStr(FileName,20);
 GoThroughList(1,FindHead);
 UpdateStaticsData(451,280,1);
 GoThroughList(0,MainHead);
 UpdateStaticsData(451,29,0);
}
int MessageBox(int x1,int y1,int x2,int y2,
	       char *title,char *text,int textcolor,
	       int onlyOK) //height should
	       //long than 70.the value of height should be think careful
{
 void *pimage;
 unsigned int ImageSize;
 ImageSize=imagesize(x1,y1,x2,y2);
 pimage=malloc(ImageSize);
 getimage(x1,y1,x2,y2,pimage);
 DrawWindow(x1,y1,x2,y2,
	    FRAME_COLOR,ACTIVE_COLOR,
	    title,1,1,1);
 setcolor(textcolor);
 outtextxy(x1+20,y1+30,text);
 setcolor(MENUTEXT_COLOR);
 if(!onlyOK)
 {
  outtextxy(x1+10,y1+50,"<Enter> for YES.");
  outtextxy(x1+10,y1+60,"< ESC > for NO.");
 }
 else
 {
  outtextxy(x1+40,y2-30,"<Enter> for OK.");
 }
 while(KeyboardMessage[1]!=CTRL_KEY_ESC)
 {
  PostKeybrdMessage();
  if(KeyboardMessage[1]==CTRL_KEY_ENTER)
  {
   putimage(x1,y1,pimage,COPY_PUT);
   free(pimage);
   return 1;
  }
 }
 putimage(x1,y1,pimage,COPY_PUT);
 free(pimage);
 return 0;
}
void LoadBox()
{
 void *imagebuf;
 int ImageSize;
 int showcount;
 ImageSize=imagesize(200,160,410,240);
 imagebuf=malloc(ImageSize);
 getimage(200,160,410,240,imagebuf);
 DrawWindow(200,160,410,240,
	    FRAME_COLOR,ACTIVE_COLOR,
	    "Open...",1,
	    1,1);
 DrawEdgeTwo(250,189,405,200);
 setcolor(MENUTEXT_COLOR);
 outtextxy(210,190,"Name:");
 outtextxy(210,210,"<Enter> for YES.");
 outtextxy(210,220,"< ESC > for CANCEL.");
 if(EditBar(251,190,EDITBACK_COLOR,EDITTEXT_COLOR,FileName,20,0)==1)
 {
  putimage(200,160,imagebuf,COPY_PUT);
  free(imagebuf);
  New(1);
  if((MainHead=LoadList(FileName))==NULL)
  {
   MessageBox(210,160,410,240,"Error",
	      "Can't find the file.",RED,1);
   ClearStr(FileName,20);
   return;
  }
  totalcount=GetCount(MainHead);
  MainLast=GetAt(MainHead,totalcount-1);
  if(totalcount<=17) showcount=totalcount;
  else showcount=17;
  GoThroughList(0,MainHead);
  UpdateStaticsData(451,29,0);
  TrainListShowData(3,55,MainHead,
		    NowIndexInList1,showcount,
		    GIRD_TEXTCOLOR1);
  SetTrainListScrollBar(438,55,447,55+17*13,
			NowIndexInList1+17,totalcount);
  return;
 }
 putimage(200,160,imagebuf,COPY_PUT);
 free(imagebuf);
 return;
}
void SaveAsBox()
{
 void *imagebuf;
 int ImageSize;
 ClearStr(FileName,20);
 ImageSize=imagesize(200,160,410,240);
 imagebuf=malloc(ImageSize);
 getimage(200,160,410,240,imagebuf);
 DrawWindow(200,160,410,240,
	    FRAME_COLOR,ACTIVE_COLOR,
	    "Save as...",1,
	    1,1);
 DrawEdgeTwo(250,189,405,200);
 setcolor(MENUTEXT_COLOR);
 outtextxy(210,190,"Name:");
 outtextxy(210,210,"<Enter> for YES.");
 outtextxy(210,220,"< ESC > for CANCEL.");
 if(EditBar(251,190,EDITBACK_COLOR,EDITTEXT_COLOR,FileName,20,0)==1)
 {
  if(totalcount!=0) SaveList(MainHead,FileName);
  Modified=0;
 }
 putimage(200,160,imagebuf,COPY_PUT);
 free(imagebuf);
}
void AddItem()
{
 int offsety;
 int AddPosition;
 int showcount;
 TRAIN *ptrain;
 if(!tab) return;
 DrawListGird(3,42,447,17);
 ClearStr(tempTrainNumber,6);
 ClearStr(tempKind,6);
 ClearStr(tempBeginHour,3);
 ClearStr(tempBeginMinute,3);
 ClearStr(tempBegin,11);
 ClearStr(tempEndHour,3);
 ClearStr(tempEndMinute,3);
 ClearStr(tempEnd,11);
 ClearStr(tempCost,5);
 if(totalcount>=16)
 {
  Index1=16;
  NowIndexInList1=totalcount-16;
  TrainListShowData(3,55,MainHead,
		    NowIndexInList1,16,
		    GIRD_TEXTCOLOR1);
 }
 else Index1=totalcount;
 SetTrainListScrollBar(438,55,447,55+17*13,
		       NowIndexInList1+17,totalcount);
 offsety=Index1*13;
 while(GroupBars(3,42+13+offsety,447-10)!=0)
 {
  Modified=1;
  if(Index1<16);// {Index1++;}
  else { NowIndexInList1++;}
  strcpy(atrain.TrainNumber,tempTrainNumber);
  strcpy(atrain.Kind,tempKind);
  strcpy(atrain.BeginHour,tempBeginHour);
  strcpy(atrain.BeginMinute,tempBeginMinute);
  strcpy(atrain.Begin,tempBegin);
  strcpy(atrain.EndHour,tempEndHour);
  strcpy(atrain.EndMinute,tempEndMinute);
  strcpy(atrain.End,tempEnd);
  strcpy(atrain.Cost,tempCost);
  if(totalcount==0)
  {
   MainHead=CreatList(atrain);
   MainLast=MainHead;
  }
  else
  {
   ptrain=AddTail(MainLast,atrain);
   MainLast=ptrain;
  }
  totalcount++;
  if(totalcount<17) {showcount=totalcount;}
  else
  {
   showcount=16;
  }
  GoThroughList(0,MainHead);
  UpdateStaticsData(451,29,0);
  setfillstyle(SOLID_FILL,GIRD_BACKCOLOR);
  bar(3,42+13+offsety,447-10,42+13+offsety+12);
  //DrawListGird(3,42,447,17);

  TrainListShowData(3,55,MainHead,
		    NowIndexInList1,showcount,
		    GIRD_TEXTCOLOR1);
  SetTrainListScrollBar(438,55,447,55+17*13,
			NowIndexInList1+17,totalcount);
  ClearStr(tempTrainNumber,6);
  ClearStr(tempKind,6);
  ClearStr(tempBeginHour,3);
  ClearStr(tempBeginMinute,3);
  ClearStr(tempBegin,11);
  ClearStr(tempEndHour,3);
  ClearStr(tempEndMinute,3);
  ClearStr(tempEnd,11);
  ClearStr(tempCost,5);
  if(totalcount>=16) Index1=16;
  else Index1=totalcount;
  offsety=Index1*13;
 }
 if(totalcount<17)
 {
  showcount=totalcount;
  if(Index1==0);
  else Index1--;
 }
 else
 {
  showcount=17;
  NowIndexInList1--;
 }
 setfillstyle(SOLID_FILL,GIRD_BACKCOLOR);
 bar(3,42+13+offsety,447-10,42+13+offsety+12);
 //DrawListGird(3,42,447,17);
 SetTrainListSelBar(3,42,447,ACTIVE_COLOR,Index1,17);
 TrainListShowData(3,55,MainHead,
		   NowIndexInList1,showcount,
		   GIRD_TEXTCOLOR1);
}
int GroupBars(int x1,int y1,int x2)
{
 int k=0;
 char tempT[6];
 char tempK[6];
 char tempBH[3];
 char tempBM[3];
 char tempB[11];
 char tempEH[3];
 char tempEM[3];
 char tempE[11];
 char tempC[5];
 strcpy(tempT,tempTrainNumber);
 strcpy(tempK,tempKind);
 strcpy(tempBH,tempBeginHour);
 strcpy(tempBM,tempBeginMinute);
 strcpy(tempB,tempBegin);
 strcpy(tempEH,tempEndHour);
 strcpy(tempEM,tempEndMinute);
 strcpy(tempE,tempEnd);
 strcpy(tempC,tempCost);

 setfillstyle(SOLID_FILL,EDITBACK_COLOR);
 //DrawBox(x1,y1,x2,y1+13,EDITBACK_COLOR);
 bar(x1,y1,x2-1,y1+13);
 EditBar(x1+2,y1+2,EDITBACK_COLOR,EDITTEXT_COLOR,tempT,6,1);
 EditBar(x1+55,y1+2,EDITBACK_COLOR,EDITTEXT_COLOR,tempK,6,1);
 EditBar(x1+106,y1+2,EDITBACK_COLOR,EDITTEXT_COLOR,tempBH,3,1);
 setcolor(EDITTEXT_COLOR);
 outtextxy(x1+124,y1+2,":");
 EditBar(x1+131,y1+2,EDITBACK_COLOR,EDITTEXT_COLOR,tempBM,3,1);
 EditBar(x1+154,y1+2,EDITBACK_COLOR,EDITTEXT_COLOR,tempB,11,1);
 EditBar(x1+252,y1+2,EDITBACK_COLOR,EDITTEXT_COLOR,tempEH,3,1);
 setcolor(EDITTEXT_COLOR);
 outtextxy(x1+269,y1+2,":");
 EditBar(x1+276,y1+2,EDITBACK_COLOR,EDITTEXT_COLOR,tempEM,3,1);
 EditBar(x1+298,y1+2,EDITBACK_COLOR,EDITTEXT_COLOR,tempE,11,1);
 EditBar(x1+396,y1+2,EDITBACK_COLOR,EDITTEXT_COLOR,tempC,5,1);
 DrawListGird(3,42,447,17);
 if(EditBar(x1+2,y1+2,EDITBACK_COLOR,EDITTEXT_COLOR,tempT,6,0)
    ==0) goto end;
 if(EditBar(x1+55,y1+2,EDITBACK_COLOR,EDITTEXT_COLOR,tempK,6,0)
    ==0) goto end;
 if(EditBar(x1+106,y1+2,EDITBACK_COLOR,EDITTEXT_COLOR,tempBH,3,0)
    ==0) goto end;
 if(EditBar(x1+131,y1+2,EDITBACK_COLOR,EDITTEXT_COLOR,tempBM,3,0)
    ==0) goto end;
 if(EditBar(x1+154,y1+2,EDITBACK_COLOR,EDITTEXT_COLOR,tempB,11,0)
    ==0) goto end;
 if(EditBar(x1+252,y1+2,EDITBACK_COLOR,EDITTEXT_COLOR,tempEH,3,0)
    ==0) goto end;
 if(EditBar(x1+276,y1+2,EDITBACK_COLOR,EDITTEXT_COLOR,tempEM,3,0)
    ==0) goto end;
 if(EditBar(x1+298,y1+2,EDITBACK_COLOR,EDITTEXT_COLOR,tempE,11,0)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91亚洲精品久久久蜜桃网站| 欧美日韩在线播| 9191成人精品久久| 久久久亚洲精品一区二区三区 | 国产成人午夜电影网| 色狠狠色狠狠综合| 国产视频在线观看一区二区三区 | 在线观看精品一区| 久久九九久精品国产免费直播| 亚洲成av人片一区二区三区| 国产福利一区在线| 日韩一区二区三区在线| 中文字幕一区二区三区精华液| 麻豆精品一区二区三区| 色视频一区二区| 中文字幕av资源一区| 麻豆freexxxx性91精品| 欧美日韩电影在线播放| 亚洲欧美激情一区二区| 国产成人鲁色资源国产91色综| 日韩欧美一区二区免费| 亚洲成人高清在线| 色老头久久综合| 亚洲青青青在线视频| 国产成人高清视频| 久久亚区不卡日本| 国模少妇一区二区三区| 欧美精品一区二区三区高清aⅴ| 五月天中文字幕一区二区| 色八戒一区二区三区| 中文字幕一区在线观看视频| 国产91精品入口| 国产欧美日韩不卡| 成人一区二区在线观看| 国产精品久久久久久久久免费丝袜 | 久久久亚洲午夜电影| 久久精品国产网站| 精品国免费一区二区三区| 久久精品国产77777蜜臀| 日韩欧美一级片| 久久国产精品99久久久久久老狼| 在线成人av影院| 免费看欧美女人艹b| 日韩免费观看高清完整版| 免费观看一级欧美片| 欧美一级片在线| 精品一二三四区| 国产亚洲欧美日韩在线一区| 成人永久aaa| 亚洲美女视频一区| 欧美老年两性高潮| 蜜桃视频一区二区| 久久久精品综合| 99久久婷婷国产综合精品| 亚洲三级免费观看| 欧美久久久久久久久久| 久久66热偷产精品| 中文字幕欧美一| 欧美日韩国产综合视频在线观看 | 亚洲综合清纯丝袜自拍| 欧美日韩久久久| 久久精品国产网站| 国产精品久久久久久妇女6080 | 欧美日韩综合色| 裸体健美xxxx欧美裸体表演| 久久久久高清精品| 91久久精品一区二区| 麻豆成人综合网| 亚洲毛片av在线| 日韩精品专区在线| 91免费看视频| 卡一卡二国产精品| 一区二区三区av电影| 日韩欧美卡一卡二| 91老师片黄在线观看| 奇米一区二区三区| 国产精品久久久久一区 | 1000精品久久久久久久久| 欧美挠脚心视频网站| 国产一区91精品张津瑜| 亚洲乱码国产乱码精品精可以看| 欧美一级二级三级乱码| av一区二区不卡| 美腿丝袜亚洲一区| 一区二区三区免费网站| 久久婷婷综合激情| 欧美巨大另类极品videosbest | 一区二区三区丝袜| 久久久久国产精品麻豆ai换脸| 欧美午夜电影网| 99久久精品国产麻豆演员表| 麻豆精品一区二区综合av| 亚洲3atv精品一区二区三区| 国产精品福利影院| 中文字幕精品一区| 精品久久一区二区三区| 91精品国产综合久久香蕉的特点| 91在线观看美女| 成人动漫一区二区三区| 国产美女在线观看一区| 日本成人在线视频网站| 亚洲成人777| 亚洲午夜久久久久久久久电影网| 国产欧美日韩综合精品一区二区| 日韩欧美一区二区不卡| 日韩欧美一区二区三区在线| 欧美精品高清视频| 欧美精品色一区二区三区| 欧美在线影院一区二区| 91蝌蚪porny九色| 99re8在线精品视频免费播放| 国产一区二区中文字幕| 狠狠色狠狠色综合| 国产做a爰片久久毛片| 国产一区二区三区香蕉| 国产一区欧美日韩| 国产99久久久国产精品| 国产91精品露脸国语对白| 国产.欧美.日韩| 99精品欧美一区二区三区小说| 成人av网址在线| 99久久精品免费| 欧美色图天堂网| 色噜噜狠狠一区二区三区果冻| 日本道免费精品一区二区三区| 色欧美片视频在线观看在线视频| 91亚洲精华国产精华精华液| 一本到三区不卡视频| 99国产精品国产精品久久| 91免费视频观看| 欧美电影一区二区| 精品欧美黑人一区二区三区| 国产欧美日韩在线观看| 亚洲视频1区2区| 日韩黄色片在线观看| 麻豆精品视频在线| 不卡大黄网站免费看| 91国产免费看| 91精品欧美一区二区三区综合在| 欧美电影免费观看高清完整版在线| 久久美女高清视频| 亚洲视频中文字幕| 青青青爽久久午夜综合久久午夜| 精品一区二区三区免费播放 | 在线观看三级视频欧美| 欧美精品自拍偷拍| 精品免费国产一区二区三区四区| 欧美国产在线观看| 性做久久久久久免费观看 | 欧美图区在线视频| 久久久久国产免费免费| 一区二区三区欧美日韩| 另类中文字幕网| 日本久久电影网| 欧美成人伊人久久综合网| 国产精品高潮久久久久无| 天堂久久久久va久久久久| 国产成人精品www牛牛影视| 欧美在线一区二区| 欧美激情在线一区二区三区| 亚洲综合色噜噜狠狠| 国产成人一级电影| 6080午夜不卡| 中文字幕佐山爱一区二区免费| 日韩av网站在线观看| 99国产精品一区| 久久久99免费| 日韩精品欧美精品| 日本韩国欧美三级| 国产精品免费av| 国产一区啦啦啦在线观看| 精品视频一区二区不卡| 国产精品伦理一区二区| 国产一区二区三区不卡在线观看 | 国产蜜臀97一区二区三区 | 欧美成人性战久久| 一区二区三区波多野结衣在线观看 | 色狠狠色噜噜噜综合网| 国产亚洲一区二区三区四区 | 丝袜美腿亚洲一区二区图片| 99久久精品免费| 久久精品视频网| 久久精品国产成人一区二区三区| 色婷婷一区二区三区四区| 久久九九全国免费| 韩国精品在线观看| 亚洲精品在线网站| 免费人成黄页网站在线一区二区| 色综合天天综合网国产成人综合天| 久久伊人蜜桃av一区二区| 日本不卡在线视频| 欧美人与z0zoxxxx视频| 夜夜嗨av一区二区三区中文字幕 | 高清国产一区二区| xvideos.蜜桃一区二区| 久久成人18免费观看| 日韩欧美高清dvd碟片| 蜜桃精品在线观看| 欧美成人女星排行榜| 久久成人羞羞网站|