📄 设计彩色框的c源程序.htm
字号:
builds a simple double frame for a menu. *<BR>*
The function is passed the parameters for the
upper *<BR>* left corner row, upper left corner
column the height *<BR>* of the frame and the
width. *<BR>*
*<BR>************************************************************/<BR>#include
<STDIO.H></FONT></P>
<P><FONT color=#009900>#define ULCOR
201<BR>#define URCOR 187<BR>#define LLCOR
200<BR>#define LRCOR 188<BR>#define VBAR
186<BR>#define HBAR 205<BR>#define ESC
27</FONT></P>
<P><FONT color=#009900><BR>box(row, col, hgt,
wdth)<BR>int row, col, hgt, wdth;</FONT></P>
<P><FONT color=#009900>{<BR>int x, y;</FONT></P>
<P><FONT
color=#009900>poscur(row,col);<BR>putchar(ULCOR);<BR>for(x
= col + 1; x <=(col + wdth -1);
x++)<BR>putchar(HBAR);<BR>putchar(URCOR);</FONT></P>
<P><FONT color=#009900>for(x = row + 1; x
<=(row + hgt - 1);
x++){<BR>poscur(x,col);<BR>putchar(VBAR);<BR>poscur(x,col+wdth);<BR>putchar(VBAR);<BR>}<BR>poscur(x,col);<BR>putchar(LLCOR);<BR>for(x=
col + 1; x <=(col + wdth -1);
x++)<BR>putchar(HBAR);<BR>putchar(LRCOR);<BR>}</FONT></P>
<P><FONT
color=#009900>/********************************************************<BR>*
POSCUR
*<BR>*------------------------------------------------------*<BR>*
This function positions the cursor at the
specified *<BR>* x,y coordinate. It uses the ANSI
standard ESCAPE *<BR>* sequence to produce the
desired effect. Its not the *<BR>* fastest way to
position the cursor, but perhaps the *<BR>* most
portable. *<BR>*
*<BR>********************************************************/<BR>poscur(xcor,ycor)<BR>int
xcor,ycor;<BR>{
<BR>printf("%c[%d;%dH",ESC,xcor,ycor);<BR>}</FONT></P>
<P><FONT
color=#009900><BR>/********************************************************<BR>*
CLRSCR
*<BR>*------------------------------------------------------*<BR>*
This function positions the cursor at the
specified *<BR>* x,y coordinate. It uses the ANSI
standard ESCAPE *<BR>* sequence to produce the
desired effect. Its not the *<BR>* fastest way to
position the cursor, but perhaps the *<BR>* most
portable. *<BR>*
*<BR>********************************************************/<BR>clrscr()<BR>{
<BR>printf("%c[2J",ESC);<BR>}</FONT><BR></P>
<P align=center><FONT color=#0000ff>资料收集:beck
Copyright 2002 www.<FONT
color=#ff0000>vcok</FONT>.com, All Rights Reserved
</FONT><BR></P>
<P></P></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE align=center bgColor=#d7ebff border=0
borderColorDark=#ffffff cellPadding=0 cellSpacing=0
width=650><TBODY>
<TR align=middle bgColor=#3986ef vAlign=center>
<TD align=left colSpan=2 height=25 id=notice
vAlign=center> <FONT
color=#ffffff><B>[</B>来源<B>]</B>: 山海网络
<B>[</B>编辑<B>]</B>: <FONT color=#ffffff>beck
</FONT> <B>[</B>加入时间<B>]</B>:2002-8-31
</FONT></TD></TR></TBODY></TABLE><BR><BR>
<TABLE border=0 width="100%">
<TBODY>
<TR>
<TD>
<LI><FONT color=#0772b1>上篇文章</FONT>:<A
href="http://www.vcok.com/class/list.asp?id=326">以前常用的攻击软件源代码</A>
<LI><FONT color=#0772b1>下篇文章</FONT>:<A
href="http://www.vcok.com/class/list.asp?id=328">聆听混沌的声音</A>
</LI></TD>
<TD align=right>
<SCRIPT language=JavaScript>
var onecount;
onecount=0;
subcat = new Array();
subcat[0] = new Array("C语言教程","8","35");
subcat[1] = new Array("C技术文章","8","36");
subcat[2] = new Array("C试题库","8","37");
subcat[3] = new Array("C程序百例","8","38");
subcat[4] = new Array("C函数库","8","39");
subcat[5] = new Array("数据结构教程","9","40");
subcat[6] = new Array("常用算法","9","41");
subcat[7] = new Array("在线测试","8","42");
subcat[8] = new Array("linux入门级","10","43");
onecount=9;
function changelocation(locationid)
{
document.myform.Nclassid.length = 0;
var locationid=locationid;
var i;
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == locationid)
{
document.myform.Nclassid.options[document.myform.Nclassid.length] = new Option(subcat[i][0], subcat[i][2]);
}
}
}
</SCRIPT>
<FORM action=ru_query.asp method=post name=myform>文章搜索:
<SELECT name=action size=1> <OPTION selected
value=title>按文章标题搜索</OPTION> <OPTION
value=writer>按文章来源搜索</OPTION> <OPTION
value=content>按文章内容搜索</OPTION> <OPTION
value=Nkey>按照关键词搜索</OPTION></SELECT> <SELECT
name=classid
onchange=changelocation(document.myform.classid.options[document.myform.classid.selectedIndex].value)
size=1> <OPTION selected value="">请指定范围</OPTION>
<OPTION value=8>C语言教室</OPTION> <OPTION
value=9>数据结构</OPTION> <OPTION
value=10>Linux初探</OPTION></SELECT> <SELECT
name=Nclassid> <OPTION selected
value="">请指定范围</OPTION> <OPTION value=8>C语言教程</OPTION>
<OPTION value=8>C技术文章</OPTION> <OPTION
value=8>C试题库</OPTION> <OPTION value=8>C程序百例</OPTION>
<OPTION value=8>C函数库</OPTION> <OPTION
value=9>数据结构教程</OPTION> <OPTION value=9>常用算法</OPTION>
<OPTION value=8>在线测试</OPTION> <OPTION
value=10>linux入门级</OPTION></SELECT> <INPUT maxLength=50
name=keyword size=10 value=输入关键字> <INPUT name=Submit type=submit value=搜索>
</FORM></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD bgColor=#e6e6e6 width="50%">□- C技术文章热点文章</TD>
<TD bgColor=#e6e6e6 width="50%">□- 相关文章</TD></TR>
<TR>
<TD bgColor=#ffffff vAlign=top width="50%">1.<A
href="http://www.vcok.com/class/list.asp?id=213" target=_top
title=Tc2.0编写俄罗斯方块游戏> Tc2.0编写俄罗斯方块游戏 </A>[阅读:<FONT
color=red>10935</FONT>]<BR>2.<A
href="http://www.vcok.com/class/list.asp?id=331" target=_top
title=查找算法演示:二分法> 查找算法演示:二分法 </A>[阅读:<FONT
color=red>10250</FONT>]<BR>3.<A
href="http://www.vcok.com/class/list.asp?id=326" target=_top
title=以前常用的攻击软件源代码> 以前常用的攻击软件源代码 </A>[阅读:<FONT
color=red>10044</FONT>]<BR>4.<A
href="http://www.vcok.com/class/list.asp?id=327" target=_top
title=设计彩色框的C源程序> 设计彩色框的C源程序 </A>[阅读:<FONT
color=red>9487</FONT>]<BR>5.<A
href="http://www.vcok.com/class/list.asp?id=330" target=_top
title=排序算法演示:冒泡法> 排序算法演示:冒泡法 </A>[阅读:<FONT
color=red>8140</FONT>]<BR></TD>
<TD bgColor=#ffffff vAlign=top width="50%"><A
href="http://www.vcok.com/class/list.asp?id=328">聆听混沌的声音</A><BR><A
href="http://www.vcok.com/class/list.asp?id=327">设计彩色框的C源程序</A><BR><A
href="http://www.vcok.com/class/list.asp?id=326">以前常用的攻击软件源代码</A><BR><A
href="http://www.vcok.com/class/list.asp?id=260">图形模式下的汉字显示</A><BR><A
href="http://www.vcok.com/class/list.asp?id=259">图形处理</A><BR></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<DIV></DIV>
<TABLE bgColor=#ffffff border=0 width=778>
<TBODY>
<TR bgColor=#ffffff>
<TD colSpan=3></TD></TR>
<TR vAlign=baseline>
<TD colSpan=3>
<HR noShade SIZE=1>
</TD></TR>
<TR>
<TD width="7%"> </TD>
<TD width="87%">
<DIV align=center>唯C世界|<FONT
face="Arial, Helvetica, sans-serif">http://wWw.VcOk.Com</FONT> <FONT
face="Arial, Helvetica, sans-serif">Ver 1.00 Design By <FONT
face="Verdana, Arial, Helvetica, sans-serif"><B><FONT
color=#ff0000><A href="http://www.vcok.com/"><FONT
color=#ff0009>VcOk.com</FONT></A></FONT></B></FONT></FONT></FONT></DIV></TD>
<TD width="6%"> </TD></TR>
<TR>
<TD width="7%"> </TD>
<TD width="87%">
<DIV align=center><FONT
face="Arial, Helvetica, sans-serif">CopyRight <FONT
color=#ff0000>©</FONT> .:.:.:2002-2008 AT Tie Ling Liaoning
China:.:.:.</FONT></DIV></TD>
<TD width="6%"> </TD></TR>
<TR>
<TD width="7%"> </TD>
<TD align=middle
width="87%"> 辽宁省铁岭师范高等专科学校计算机中心
</TD></TR></TBODY></TABLE>
<TABLE bgColor=#b5b6b5 cellSpacing=1 height=30 width=778>
<TBODY>
<TR>
<TD align=middle bgColor=#ffffff>在此感谢 <A
href="http://www.kingxp.com/">广东省中联科技网络有限公司</A> 为我公司提供空间。/ 合作伙伴:<A
href="http://www.11k.net/">中国站长资讯网</A></TD></TR></TBODY></TABLE></TR></TBODY></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -