⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 山海网络.htm

📁 curses界面编程
💻 HTM
📖 第 1 页 / 共 3 页
字号:
 </td>
  </tr>
</table>

<br>


<table bordercolor=#333333 cellspacing=0 cellpadding=0 width=751 align=center border=1>
  <tr>
    <td width="657"><img border="0" src="images/reply_a.gif"> </td>
    <td width="89" align="center">	  
	<a href=#top><font color=blue><b>Top</b></font></a>
	 </td>
  </tr>
</table>
<table bordercolor=#333333 cellspacing=0 cellpadding=0 width=751 align=center border=1>
  <tr bgcolor=#e3f1d1>
    <td width="100%" height="22" class="big"> xfdipzone         
      (<font color=blue>夕辉</font>)            
      2004-6-13 17:29:54             
	 <img src=images/level4.gif>
	  </td>
  </tr>
</table>
<table bordercolor=#333333 cellspacing=0 cellpadding=0 width=751 align=center border=1 height="42">
  <tr>
    <td width="100%" height="40">
      <table border="0" cellpadding="0" cellspacing="0" width="100%" height="120">
        <tr>
          <td width="2%" height="20"></td>
          <td width="98%" height="20"></td>
        </tr>
        <tr>
          <td width="2%" height="80" rowspan="2"></td>
          <td width="98%" height="69" valign="top" class="big" style="word-break:break-all;">#include<process.h><BR> #include<stdlib.h><BR> #include<stdio.h><BR> #include<dos.h><BR> #include<conio.h><BR> #definedown80<BR> #defineup72<BR> #defineesc1<BR> #definexy77<BR> #definexz75<BR> #definexx80<BR> #definexs72<BR> #definealtf33<BR> #definealtx45<BR> #definealte18<BR> #definealtr19<BR> #definealto24<BR> #definealth35<BR> #definealts31<BR> #definealtz44<BR> #definealtm50<BR> #define<a name=2></a><B style='color:black;background-color:#99ff99'>enter</B>28<BR> #defineaf1068<BR> intget_key()<BR> {<BR> unionREGSrg;<BR> rg.h.ah=0;<BR> int86(0x16,&rg,&rg);<BR> returnrg.h.ah;<BR> }<BR> voidbox(intstartx,intstarty,inthigh,intwidth)<BR> {inti;<BR> gotoxy(startx,starty);<BR> putch(0xda);<BR> for(i=startx+1;i<width;i++)putch(0xc4);<BR> putch(0xbf);<BR> for(i=starty+1;i<high;i++)<BR> {<BR> gotoxy(startx,i);putch(0xb3);<BR> gotoxy(width,i);putch(0xb3);<BR> }<BR> gotoxy(startx+1,width);<BR> putch(0xc0);<BR> for(i=startx+1;i<width;i++)putch(0xc4);<BR> putch(0xd9);<BR> return;<BR> }<BR> main()<BR> {</font></P><P style="font-size:pt;line-height:pt"> inti,key,x,y,l,lh,hzb,cx,jt,hqslh[8],f10,zcd=4,xsz,me;<BR> char*zh="File";<BR> char*lf[8];<BR> char*menu[]={"File","Edit","Run","Options","Help","Setup","Zoom","Menu"};<BR> char*red[]={"F","E","R","O","H","S","Z","M"};<BR> char*f[]={"loandfile","savefile","print","modify","quitalt_x","dfd"};<BR> char*f1[]={"12345file","savefile","print","modify","quitalt_x"};<BR> char*f2[]={"loandfile","savefile","print","modify","quitalt_x"};<BR> char*f3[]={"loandfile","savefile","print","modify","quitalt_x"};<BR> char*f4[]={"loandfile","savefile","print","modify","quitalt_x"};<BR> char*f5[]={"loandfile","savefile","print","modify","quitalt_x"};<BR> char*f6[]={"loandfile","savefile","print","modify","quitalt_x"};<BR> char*f7[]={"loandfile","savefile","print","modify","quitalt_x"};<BR> charbuf[16*10*2],buf1[16*2];<BR> textbackground(1);<BR> clrscr();<BR> window(1,1,80,1);<BR> textbackground(15);<BR> textcolor(0);<BR> clrscr();<BR> window(1,1,80,2);<BR> for(i=0,l=0;i<8;i++)<BR> {<BR> x=wherex();<BR> y=wherey();<BR> cprintf("%s",menu[i]);<BR> l=strlen(menu[i]);<BR> gotoxy(x,y);<BR> textcolor(RED);<BR> cprintf("%s",red[i]);<BR> x=x+l+4;<BR> gotoxy(x,y);<BR> textcolor(BLACK);<BR> }<BR> hqslh[0]=4;<BR> for(i=0;i<8;i++)<BR> {<BR> zcd=zcd+strlen(menu[i])+4;<BR> hqslh[i+1]=zcd;<BR> }<BR> while(1)<BR> {</font></P><P style="font-size:pt;line-height:pt"> f10=0;<BR> key=0;<BR> hzb=0;<BR> lh=4;<BR> <BR> cx=0;<BR> while(bioskey(1)==0);<BR> key=get_key();<BR> while(key==af10)<BR> {<BR> while(!f10)<BR> {<BR> textbackground(0);<BR> textcolor(15);<BR> gotoxy(lh,1);<BR> cprintf("%s",menu[hzb]);<BR> key=get_key();<BR> if(key==altx)exit(1);<BR> if(key==xx){f10=1;break;}<BR> if(key==esc||key==altf||key==alte||key==altr||key==alto||key==alth||key==alts||key==altz||key==altm){cx=1;}<BR> textbackground(15);<BR> textcolor(0);<BR> l=strlen(menu[hzb]);<BR> gotoxy(lh,1);<BR> cprintf("%s",menu[hzb]);<BR> gotoxy(lh,1);<BR> textcolor(RED);<BR> cprintf("%s",red[hzb]);<BR> if(cx)break;<BR> if(key==xy){lh=lh==63?4:lh+strlen(menu[hzb])+4;hzb=hzb==7?0:hzb+1;}<BR> if(key==xz){lh=lh==4?63:lh-strlen(menu[hzb-1])-4;hzb=hzb==0?7:hzb-1;}<BR> }<BR> }</font></P><P style="font-size:pt;line-height:pt"> xsz=0;<BR> if(f10)<BR> {<BR> switch(hzb)<BR> {<BR> case0:{for(i=0;i<=8;i++)lf[i]=f[i];lh=hqslh[0];xsz=1;me=0;break;}<BR> case1:{for(i=0;i<=8;i++)lf[i]=f1[i];lh=hqslh[1];xsz=1;me=1;break;}<BR> case2:{for(i=0;i<=8;i++)lf[i]=f1[i];lh=hqslh[2];xsz=1;me=2;break;}<BR> case3:{for(i=0;i<=8;i++)lf[i]=f1[i];lh=hqslh[3];xsz=1;me=3;break;}<BR> case4:{for(i=0;i<=8;i++)lf[i]=f1[i];lh=hqslh[4];xsz=1;me=4;break;}<BR> case5:{for(i=0;i<=8;i++)lf[i]=f1[i];lh=hqslh[5];xsz=1;me=5;break;}<BR> case6:{for(i=0;i<=8;i++)lf[i]=f1[i];lh=hqslh[6];xsz=1;me=6;break;}<BR> case7:{for(i=0;i<=8;i++)lf[i]=f1[i];lh=hqslh[7];xsz=1;me=7;break;}<BR> <BR> }<BR> }<BR> else<BR> {<BR> switch(key)<BR> {<BR> case33:{for(i=0;i<=8;i++)lf[i]=f[i];lh=hqslh[0];xsz=1;me=0;break;}<BR> case18:{for(i=0;i<=8;i++)lf[i]=f1[i];lh=hqslh[1];xsz=1;me=1;break;}<BR> case19:{for(i=0;i<=8;i++)lf[i]=f2[i];lh=hqslh[2];xsz=1;me=2;break;}<BR> case24:{for(i=0;i<=8;i++)lf[i]=f3[i];lh=hqslh[3];xsz=1;me=3;break;}<BR> case35:{for(i=0;i<=8;i++)lf[i]=f4[i];lh=hqslh[4];xsz=1;me=4;break;}<BR> case31:{for(i=0;i<=8;i++)lf[i]=f5[i];lh=hqslh[5];xsz=1;me=5;break;}<BR> case44:{for(i=0;i<=8;i++)lf[i]=f6[i];lh=hqslh[6];xsz=1;me=6;break;}<BR> case50:{for(i=0;i<=8;i++)lf[i]=f7[i];lh=hqslh[7];xsz=1;me=7;break;}<BR> }<BR> }</font></P><P style="font-size:pt;line-height:pt"> if(key==altx)exit(1);<BR> if(xsz)<BR> {<BR> textbackground(0);<BR> textcolor(15);<BR> gotoxy(lh,1);<BR> if(me==0){menu[0]=zh;}<BR> cprintf("%s",menu[me]);<BR> gettext(lh,2,lh+15,8,buf);<BR> window(lh,2,lh+15,8);<BR> textbackground(15);<BR> textcolor(0);<BR> clrscr();<BR> window(lh,2,lh+15,9);<BR> box(1,1,7,16);<BR> for(i=2;i<7;i++)<BR> {<BR> gotoxy(2,i);<BR> cprintf("%s",lf[i-2]);<BR> }<BR> gettext(lh,2,lh+16,3,buf1);<BR> textbackground(0);<BR> textcolor(15);<BR> gotoxy(2,2);<BR> cprintf("%s",lf[0]);<BR> y=2;<BR> key=get_key();<BR> while(key!=altx&&key!=<B style='color:black;background-color:#99ff99'>enter</B>&&key!=esc)<BR> {<BR> if(key==up||key==down)<BR> {<BR> puttext(lh,y,lh+16,y+1,buf1);<BR> if(key==up)y=y==2?6:y-1;<BR> if(key==down)y=y==6?2:y+1;<BR> gettext(lh,y,lh+16,y+1,buf1);<BR> textcolor(15);<BR> textbackground(0);<BR> gotoxy(2,y);<BR> cprintf("%s",lf[y-2]);<BR> }<BR> key=get_key();<BR> }<BR> if(key==altx)exit(0);<BR> if(key==<B style='color:black;background-color:#99ff99'>enter</B>){printf("hellowelcom");exit(1);}<BR> else<BR> {<BR> puttext(lh,2,lh+15,8,buf);<BR> textbackground(15);<BR> textcolor(0);<BR> window(1,1,80,2);<BR> gotoxy(lh,1);<BR> cprintf("%s",menu[me]);<BR> gotoxy(lh,1);<BR> textcolor(RED);<BR> cprintf("%s",red[me]);<BR> menu[0]=zh;<BR> }<BR> }<BR> }<BR> }</font></P><P style="font-size:pt;line-height:pt"> </td>
        </tr>
        <tr>
          <td width="98%" height="11" valign="top" class="big">
		  -----------------------------------------------------------------------<br>☆真心飞羽♂
		  </td>
        </tr>
        <tr>
          <td width="2%" height="20"></td>
          <td width="98%" height="20"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<table bordercolor=#333333 cellspacing=0 cellpadding=0 width=751 align=center border=1>
  <tr>
    <td width="657"><img border="0" src="images/reply_a.gif"> </td>
    <td width="89" align="center">	  
	<a href=#top><font color=blue><b>Top</b></font></a>
	 </td>
  </tr>
</table>
<table bordercolor=#333333 cellspacing=0 cellpadding=0 width=751 align=center border=1>
  <tr bgcolor=#e3f1d1>
    <td width="100%" height="22" class="big"> xfdipzone         
      (<font color=blue>夕辉</font>)            
      2004-6-13 17:30:13             
	 <img src=images/level4.gif>
	  </td>
  </tr>
</table>
<table bordercolor=#333333 cellspacing=0 cellpadding=0 width=751 align=center border=1 height="42">
  <tr>
    <td width="100%" height="40">
      <table border="0" cellpadding="0" cellspacing="0" width="100%" height="120">
        <tr>
          <td width="2%" height="20"></td>
          <td width="98%" height="20"></td>
        </tr>
        <tr>
          <td width="2%" height="80" rowspan="2"></td>
          <td width="98%" height="69" valign="top" class="big" style="word-break:break-all;">#include<curses.h><BR> #include<stdlib.h><BR> #defineESC27<BR> #define<B style='color:black;background-color:#99ff99'>ENTER</B>10</font></P><P style="font-size:pt;line-height:pt"> #defineITEM_NUM_13<BR> #defineITEM_NUM_22<BR> #defineITEM_NUM_33<BR> #defineITEM_NUM_44</font></P><P style="font-size:pt;line-height:pt"> #defineITEM_NO_11<BR> #defineITEM_NO_22<BR> #defineITEM_NO_33<BR> #defineITEM_NO_44</font></P><P style="font-size:pt;line-height:pt"> voidinit_<a name=3></a><B style='color:black;background-color:#ff9999'>curses</B>(void);<BR> voidDraw_menuhead(WINDOW*menuhead);<BR> WINDOW**Draw_menu(intstart_cols,intitemNo);<BR> intview_menu(WINDOW**items,/*intitemNum,*/intstart_cols,intitemNo);<BR> voidDel_menu(WINDOW**items,intitemNum);<BR> intitem_num(intitemNo);</font></P><P style="font-size:pt;line-height:pt"> main()<BR> {<BR> WINDOW*menuhead,*message;<BR> WINDOW**items;/*菜单项目指针,数组元素指向菜单项子项*/<BR> intKey;<BR> intcount;/*菜单子项的数目*/<BR> intRe_item;/*菜单浏览返回值*/</font></P><P style="font-size:pt;line-height:pt"> init_<B style='color:black;background-color:#ff9999'>curses</B>();</font></P><P style="font-size:pt;line-height:pt"> wbkgd(stdscr,COLOR_PAIR(1));<BR> menuhead=subwin(stdscr,1,80,0,0);<BR> message=subwin(stdscr,1,79,23,1);</font></P><P style="font-size:pt;line-height:pt"> Draw_menuhead(menuhead);/*绘制菜单头部*/<BR> move(2,1);<BR> printw("PleaseF1--F4SelectMenu...");<BR> move(3,1);<BR> printw("PleaseESCQuit...");<BR> do{<BR> Key=getch();<BR> switch(Key){<BR> case<a name=0></a><B style='color:black;background-color:#ffff66'>KEY_</B>F(1):<BR> items=Draw_menu(3,ITEM_NO_1);/*第3列,第1菜单*/<BR> Re_item=view_menu(items,/*ITEM_NUM_1,*/3,ITEM_NO_1);<BR> touchwin(stdscr);<BR> refresh();<BR> break;<BR> case<B style='color:black;background-color:#ffff66'>KEY_</B>F(2):<BR> items=Draw_menu(23,ITEM_NO_2);/*第23列,第2菜单*/<BR> Re_item=view_menu(items,/*ITEM_NUM_2,*/23,ITEM_NO_2);<BR> touchwin(stdscr);<BR> refresh();<BR> break;</font></P><P style="font-size:pt;line-height:pt"> case<B style='color:black;background-color:#ffff66'>KEY_</B>F(3):<BR> items=Draw_menu(43,ITEM_NO_3);/*第43列,第3菜单*/<BR> Re_item=view_menu(items,/*ITEM_NUM_3,*/43,ITEM_NO_3);<BR> touchwin(stdscr);<BR> refresh();<BR> break;<BR> case<B style='color:black;background-color:#ffff66'>KEY_</B>F(4):<BR> items=Draw_menu(63,ITEM_NO_4);/*第63列,第4菜单*/<BR> Re_item=view_menu(items,/*ITEM_NUM_4,*/63,ITEM_NO_4);<BR> touchwin(stdscr);<BR> refresh();<BR> break;<BR> default:break;<BR> }<BR> }while(Key!=ESC);</font></P><P style="font-size:pt;line-height:pt"> delwin(message);<BR> delwin(menuhead);<BR> endwin();<BR> exit(0);<BR> }</font></P><P style="font-size:pt;line-height:pt"> voidDraw_menuhead(WINDOW*menuhead)<BR> {<BR> wbkgd(menuhead,COLOR_PAIR(2));<BR> wrefresh(menuhead);<BR> wmove(menuhead,0,0);<BR> waddstr(menuhead,"菜单1");<BR> wattron(menuhead,COLOR_PAIR(3));<BR> waddstr(menuhead,"(F1)");<BR> wattroff(menuhead,COLOR_PAIR(3));<BR> wmove(menuhead,0,20);<BR> waddstr(menuhead,"菜单2");<BR> wattron(menuhead,COLOR_PAIR(3));<BR> waddstr(menuhead,"(F2)");<BR> wattroff(menuhead,COLOR_PAIR(3));<BR> wmove(menuhead,0,40);<BR> waddstr(menuhead,"菜单3");<BR> wattron(menuhead,COLOR_PAIR(3));<BR> waddstr(menuhead,"F(3)");<BR> wattroff(menuhead,COLOR_PAIR(3));<BR> wmove(menuhead,0,60);<BR> waddstr(menuhead,"菜单4");<BR> wattron(menuhead,COLOR_PAIR(3));<BR> waddstr(menuhead,"F(4)");<BR> wattroff(menuhead,COLOR_PAIR(3));<BR> }</font></P><P style="font-size:pt;line-height:pt"> voidinit_<B style='color:black;background-color:#ff9999'>curses</B>(void)<BR> {<BR> initscr();<BR> noecho();<BR> keypad(stdscr,TRUE);<BR> /*intrflush(stdscr,FALSE);*/<BR> start_color();/*初始化*/<BR> init_pair(1,COLOR_WHITE,COLOR_BLUE);<BR> init_pair(2,COLOR_BLUE,COLOR_WHITE);<BR> init_pair(3,COLOR_RED,COLOR_WHITE);</font></P><P style="font-size:pt;line-height:pt"> curs_set(0);/*设置光标不可见*/<BR> }</font></P><P style="font-size:pt;line-height:pt"> WINDOW**Draw_menu(intstart_cols,intitemNo)<BR> {<BR> WINDOW**items;</font></P><P style="font-size:pt;line-height:pt"> switch(itemNo){<BR> case1:<BR> items=(WINDOW**)malloc((ITEM_NUM_1+1)*sizeof(WINDOW*));</font></P><P style="font-size:pt;line-height:pt"> items[0]=newwin(ITEM_NUM_1+2,19,1,start_cols);<BR> wbkgd(items[0],COLOR_PAIR(2));<BR> box(items[0],ACS_VLINE,ACS_HLINE);</font></P><P style="font-size:pt;line-height:pt"> items[1]=subwin(items[0],1,17,2,start_cols+1);<BR> wprintw(items[1],"子项A1");<BR> items[2]=subwin(items[0],1,17,3,start_cols+1);<BR> wprintw(items[2],"子项A2");<BR> items[3]=subwin(items[0],1,17,4,start_cols+1);<BR> wprintw(items[3],"子项A3");<BR> /*items[4]=subwin(items[0],1,17,5,start_cols+1);<BR> wprintw(items[4],"子项A4");*/<BR> break;<BR> case2:<BR> items=(WINDOW**)malloc((ITEM_NUM_2+1)*sizeof(WINDOW*));</font></P><P style="font-size:pt;line-height:pt"> items[0]=newwin(ITEM_NUM_2+2,19,1,start_cols);<BR> wbkgd(items[0],COLOR_PAIR(2));<BR> box(items[0],ACS_VLINE,ACS_HLINE);</font></P><P style="font-size:pt;line-height:pt"> items[1]=subwin(items[0],1,17,2,start_cols+1);<BR> wprintw(items[1],"子项B1");<BR> items[2]=subwin(items[0],1,17,3,start_cols+1);<BR> wprintw(items[2],"子项B2");<BR> /*items[3]=subwin(items[0],1,17,4,start_cols+1);<BR> wprintw(items[3],"子项B3");<BR> items[4]=subwin(items[0],1,17,5,start_cols+1);<BR> wprintw(items[4],"子项B4");*/<BR> break;<BR> case3:<BR> items=(WINDOW**)malloc((ITEM_NUM_3+1)*sizeof(WINDOW*));</font></P><P style="font-size:pt;line-height:pt"> items[0]=newwin(ITEM_NUM_3+2,19,1,start_cols);<BR> wbkgd(items[0],COLOR_PAIR(2));<BR> box(items[0],ACS_VLINE,ACS_HLINE);</font></P><P style="font-size:pt;line-height:pt"> items[1]=subwin(items[0],1,17,2,start_cols+1);<BR> wprintw(items[1],"子项C1");<BR> items[2]=subwin(items[0],1,17,3,start_cols+1);<BR> wprintw(items[2],"子项C2");<BR> items[3]=subwin(items[0],1,17,4,start_cols+1);<BR> wprintw(items[3],"子项C3");<BR> /*items[4]=subwin(items[0],1,17,5,start_cols+1);<BR> wprintw(items[4],"子项C4");*/<BR> break;<BR> case4:<BR> items=(WINDOW**)malloc((ITEM_NUM_4+1)*sizeof(WINDOW*));</font></P><P style="font-size:pt;line-height:pt"> items[0]=newwin(ITEM_NUM_4+2,19,1,start_cols);<BR> wbkgd(items[0],COLOR_PAIR(2));<BR> box(items[0],ACS_VLINE,ACS_HLINE);</font></P><P style="font-size:pt;line-height:pt"> items[1]=subwin(items[0],1,17,2,start_cols+1);<BR> wprintw(items[1],"子项D1");<BR> items[2]=subwin(items[0],1,17,3,start_cols+1);<BR> wprintw(items[2],"子项D2");<BR> items[3]=subwin(items[0],1,17,4,start_cols+1);<BR> wprintw(items[3],"子项D3");<BR> items[4]=subwin(items[0],1,17,5,start_cols+1);<BR> wprintw(items[4],"子项D4");<BR> break;<BR> default:break;<BR> }<BR> wbkgd(items[1],COLOR_PAIR(1));<BR> wrefresh(items[0]);<BR> returnitems;<BR> }</font></P><P style="font-size:pt;line-height:pt"> view_menu(WINDOW**items,/*intitemNum,*/intstart_cols,intitemNo)<BR> {<BR> intselect=0;/*适应求余算法,0--itemNum-1,对应1--itemNum*/<BR> intKey;<BR> intitemNum;</font></P><P style="font-size:pt;line-height:pt"> itemNo=itemNo-1;/*适应求余算法,0--3对应1--4*/<BR> wrefresh(items[0]);<BR> A1:<BR> itemNum=item_num(itemNo+1);<BR> while(1){<BR> Key=getch();<BR> if(Key==<B style='color:black;background-color:#ffff66'>KEY_</B>DOWN||Key==<B style='color:black;background-color:#ffff66'>KEY_</B>UP){<BR> wbkgd(items[select+1],COLOR_PAIR(2));<BR> wnoutrefresh(items[select+1]);<BR> if(Key==<B style='color:black;background-color:#ffff66'>KEY_</B>DOWN)<BR> select=(select+1)%itemNum;<BR> else<BR> select=(select+itemNum-1)%itemNum;<BR> wbkgd(items[select+1],COLOR_PAIR(1));<BR> wnoutrefresh(items[select+1]);/*select+1为第几项目1/2/3../itemNum*/<BR> doupdate();<BR> }<BR> else{<BR> if(Key==<B style='color:black;background-color:#ffff66'>KEY_</B>LEFT||Key==<B style='color:black;background-color:#ffff66'>KEY_</B>RIGHT){<BR> Del_menu(items,itemNum+1);<BR> touchwin(stdscr);<BR> refresh();<BR> if(Key==<B style='color:black;background-color:#ffff66'>KEY_</B>RIGHT)<BR> if(start_cols<63){<BR> itemNo=(itemNo+1)%4;/*4:一共4个菜单*/<BR> start_cols=start_cols+20;/*20:菜单之间原点间隔数*/<BR> }<BR> else{<BR> itemNo=0;<BR> start_cols=3;<BR> }<BR> else<BR> if(start_cols>3){<BR> itemNo=(itemNo+4-1)%4;<BR> start_cols=start_cols-20;<BR> }<BR> else{<BR> itemNo=3;<BR> start_cols=63;<BR> }</font></P><P style="font-size:pt;line-height:pt"> items=Draw_menu(start_cols,itemNo+1);/*itemNo+1为菜单号1\2\3\4*/<BR> select=0;</font></P><P style="font-size:pt;line-height:pt"> gotoA1;<BR> /*returnview_menu(items,4,start_cols);*/<BR> }<BR> if(Key==ESC)return-1;<BR> else<BR> if(Key==<B style='color:black;background-color:#99ff99'>ENTER</B>){<BR> return1;/**/<BR> }<BR> }<BR> }<BR> }</font></P><P style="font-size:pt;line-height:pt"> <BR> voidDel_menu(WINDOW**items,intitemNum)<BR> {<BR> inti;</font></P><P style="font-size:pt;line-height:pt"> for(i=0;i<delwin(items[i]);i++)<BR> free(items);<BR> }</font></P><P style="font-size:pt;line-height:pt"> <BR> item_num(intitemNo)/*根据菜单号找出对应项目数*/<BR> {<BR> switch(itemNo){<BR> case1:returnITEM_NUM_1;<BR> case2:returnITEM_NUM_2;<BR> case3:returnITEM_NUM_3;<BR> case4:returnITEM_NUM_4;<BR> }<BR> }<BR> </td>
        </tr>
        <tr>
          <td width="98%" height="11" valign="top" class="big">
		  -----------------------------------------------------------------------<br>☆真心飞羽♂
		  </td>
        </tr>
        <tr>
          <td width="2%" height="20"></td>
          <td width="98%" height="20"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<table bordercolor=#333333 cellspacing=0 cellpadding=0 width=751 align=center border=1>
  <tr>
    <td width="657"><img border="0" src="images/reply_a.gif"> </td>
    <td width="89" align="center">	  
	<a href=#top><font color=blue><b>Top</b></font></a>
	 </td>
  </tr>
</table>
<table bordercolor=#333333 cellspacing=0 cellpadding=0 width=751 align=center border=1>
  <tr bgcolor=#e3f1d1>
    <td width="100%" height="22" class="big"> xfdipzone         
      (<font color=blue>夕辉</font>)            
      2004-6-13 17:30:42             
	 <img src=images/level4.gif>
	  </td>
  </tr>
</table>
<table bordercolor=#333333 cellspacing=0 cellpadding=0 width=751 align=center border=1 height="42">
  <tr>
    <td width="100%" height="40">
      <table border="0" cellpadding="0" cellspacing="0" width="100%" height="120">
        <tr>
          <td width="2%" height="20"></td>
          <td width="98%" height="20"></td>
        </tr>
        <tr>
          <td width="2%" height="80" rowspan="2"></td>
          <td width="98%" height="69" valign="top" class="big" style="word-break:break-all;">两个都行,你喜欢用哪个都可以!</td>
        </tr>
        <tr>
          <td width="98%" height="11" valign="top" class="big">
		  -----------------------------------------------------------------------<br>☆真心飞羽♂
		  </td>
        </tr>
        <tr>
          <td width="2%" height="20"></td>
          <td width="98%" height="20"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<table bordercolor=#333333 cellspacing=0 cellpadding=0 width=751 align=center border=1>
  <tr>
    <td width="657"><img border="0" src="images/reply_a.gif"> </td>
    <td width="89" align="center">	  
	<a href=#top><font color=blue><b>Top</b></font></a>
	 </td>
  </tr>
</table>
<table bordercolor=#333333 cellspacing=0 cellpadding=0 width=751 align=center border=1>
  <tr bgcolor=#e3f1d1>
    <td width="100%" height="22" class="big"> lijianpu         
      (<font color=blue>lijianpu</font>)            
      2004-6-13 17:34:53             
	 <img src=images/level1.gif>
	  </td>
  </tr>
</table>
<table bordercolor=#333333 cellspacing=0 cellpadding=0 width=751 align=center border=1 height="42">
  <tr>
    <td width="100%" height="40">
      <table border="0" cellpadding="0" cellspacing="0" width="100%" height="120">
        <tr>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -