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

📄 24点扑克牌游戏.htm

📁 经典小游戏,希望能给大家带来点好处
💻 HTM
📖 第 1 页 / 共 4 页
字号:
    onmouseover="this.style.backgroundColor='#edad0d'; this.style.cursor='hand';" 
    onmouseout="this.style.backgroundColor='#bf6d3f';" align=middle width="9%" 
    bgColor=#bf6d3f height=22><A class=class title=提供各种学习软件 
      href="http://www.cstudyhome.com/wenzhang06/type.asp?typeID=12"><FONT 
      color=#ffffff>软 件</FONT></A></TD>
    <TD 
    onmouseover="this.style.backgroundColor='#edad0d'; this.style.cursor='hand';" 
    onmouseout="this.style.backgroundColor='#bf6d3f';" align=middle width="9%" 
    bgColor=#bf6d3f height=22><A class=class 
      title=在这里大家可以自由发表文章、可以提出求援和对问题的探讨,对发表的文章也可以自由评论,不受文章审核条款的约束。对于好的文章可以选到正式栏目作为一篇文章计数。发文时注意要选“不属于任何专栏” 
      href="http://www.cstudyhome.com/wenzhang06/type.asp?typeID=13"><FONT 
      color=#ffffff>其它文章</FONT></A></TD>
    <TD 
    onmouseover="this.style.backgroundColor='#edad0d'; this.style.cursor='hand';" 
    onmouseout="this.style.backgroundColor='#bf6d3f';" align=middle width="9%" 
    bgColor=#bf6d3f height=22><A class=class title="" 
      href="http://www.cstudyhome.com/wenzhang06/type.asp?typeID=15"><FONT 
      color=#ffffff>等级考试辅导专栏</FONT></A></TD><!--<td bgcolor="#bf6d3f" height="22" width="7.69230769230769%" onMouseOver="this.style.backgroundColor='#edad0d'; this.style.cursor='hand';" onMouseOut="this.style.backgroundColor='#bf6d3f';">
            <div align="center">
            <a href="http://www.cstudyhome.com/wenzhang06/liuyan03/guestbook.asp" target="_blank"class=class><FONT color=#ffffff>留&nbsp;&nbsp;言</font></a>
            </div>
</td>--></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=750 align=center bgColor=#c1c1c1 
border=0>
  <TBODY>
  <TR>
    <TD vAlign=center width=750 background=24点扑克牌游戏_files/BACK1.gif colSpan=5 
    height=20>
      <MARQUEE scrollAmount=2 scrollDelay=5><FONT color=#ffffff><!-- <IFRAME src='http://www.cpok.com/ad/amn.htm?wangfu' width='120' height='14' marginwidth='0' marginheight='0' frameborder='0' scrolling='no'></IFRAME>--></FONT></MARQUEE></TD></TR>
  <TR>
    <TD align=middle><!--<script src=http://www.sji168.com/cgi-bin/members/code.php?link=wangfu&ad=770></script>--></TD></TR>
  <TR>
    <TD>
      <TABLE cellSpacing=0 cellPadding=0 width=750 align=center bgColor=#a7ccfa 
      border=0>
        <TBODY>
        <TR>
          <TD></TD></TR>
        <TR>
          <TD width=20 background=24点扑克牌游戏_files/banbg.gif> </TD>
          <TD width=530 background=24点扑克牌游戏_files/banbg.gif height=20>当前位置:<A 
            class=class 
            href="http://www.cstudyhome.com/wenzhang06/">网站首页</A>&gt;&gt;<A 
            class=class 
            href="http://www.cstudyhome.com/wenzhang06/type.asp?typeid=11">C语言</A>&gt;&gt;<A 
            class=class 
            href="http://www.cstudyhome.com/wenzhang06/BigClass.asp?typeid=11&amp;BigClassid=34">C游戏编程</A>&gt;&gt;<A 
            class=class 
            href="http://www.cstudyhome.com/wenzhang06/SmallClass.asp?typeid=11&amp;BigClassID=34&amp;SmallClassID=61">C语言游戏编程</A></TD>
          <TD width=107 background=24点扑克牌游戏_files/banbg.gif 
height=20>双击自动滚屏</TD>
          <TD width=91 background=24点扑克牌游戏_files/banbg.gif><INPUT onclick="window.close();return false;" type=button value=关闭窗口 name=close> 
          </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#e2ca9f cellSpacing=0 
cellPadding=0 width=750 align=center border=3>
  <TBODY>
  <TR><!--<td width="20%" align="middle" valign="top" background="images/002.jpg" bordercolor="#e2ca9f"> </td> 
<td width="80%">-->
    <TD width="100%">
      <TABLE borderColor=#e2ca9f cellSpacing=0 cellPadding=0 width="100%" 
      border=0>
        <TBODY>
        <TR>
          <TD vAlign=top align=middle width="95%">
            <TABLE borderColor=#e2ca9f cellSpacing=0 cellPadding=0 width="100%" 
            border=1>
              <TBODY>
              <TR>
                <TD vAlign=top borderColor=#e2ca9f align=middle width="69%" 
                background=24点扑克牌游戏_files/002.jpg>
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center 
                  border=0>
                    <TBODY>
                    <TR>
                      <TD width="100%" height=40></TD></TR>
                    <TR>
                      <TD>
                        <FORM name=form1 
                        action=Readnews.asp?newsid=5430&amp;id2=5430 
method=post>
                        <CENTER><!-- <input type=submit name=aa value="点击关闭浮动图标" width=20 title="点击广告支持本站">--></CENTER></FORM></TD></TR>
                    <TR>
                      <TD style="FONT-SIZE: 18px" vAlign=bottom align=middle 
                      width="85%" bgColor=#dddddd height=20><STRONG><FONT 
                        color=#003399 size=4><B>24点扑克牌游戏 
                      </B></FONT></STRONG></TD><BR></TR>
                    <TR>
                      <TD align=middle width="100%"><BR></TD></TR>
                    <TR>
                      <TD style="FONT-SIZE: 9pt" align=middle 
                        width="100%">发表日期:2005年5月4日&nbsp;&nbsp;出处:参照算法自己编写&nbsp;&nbsp;作者:jay0518&nbsp;&nbsp;已经有1808位读者读过此文</TD></TR>
                    <TR>
                      <TD align=middle width="100%"><!--下面的这一句是设置阅读文本区的宽度-->
                        <TABLE style="TABLE-LAYOUT: fixed" cellSpacing=0 
                        cellPadding=0 width="90%" align=center border=0>
                          <TBODY>
                          <TR>
                            <TD align=middle width="100%"></TD></TR>
                          <TR>
                            <TD style="WORD-WRAP: break-word"><FONT 
                              class=news><BR>#include&lt;stdio.h&gt;<BR>#include&lt;graphics.h&gt;<BR>#include&lt;ctype.h&gt;<BR>#include&lt;time.h&gt;<BR>#include&lt;stdlib.h&gt;<BR>#include&lt;string.h&gt;<BR>#define 
                              COL 100<BR>#define COM 40<BR>#define max 
                              20<BR>char after[max];<BR>typedef struct 
                              stack&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*定义栈1存放运算符*/<BR>{<BR>char 
                              stack[max];<BR>int top;<BR>}stack;<BR>stack 
                              L;<BR>typedef struct 
                              stack1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*定义栈2计算表达式值*/<BR>{<BR>int 
                              stack1[max];<BR>int top;<BR>}stack1;<BR>stack1 
                              S;<BR>void initstack(stack 
                              M)<BR>{<BR>M-&gt;top=0;<BR>}<BR>voidinitstack1(stack1 
                              N)<BR>{<BR>N-&gt;top=0;<BR>}<BR>char&nbsp;&nbsp;p[4][13]={<BR>{'A','2,'3','4','5','6','7','8','9','0','J','Q','K'},<BR>{'A','2,'3','4','5','6','7','8','9','0','J','Q','K'},<BR>{'A','2,'3','4','5','6','7','8','9','0','J','Q','K'},<BR>{'A','2,'3','4','5','6','7','8','9','0','J','Q','K'}<BR>};<BR>void 
                              play()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*发牌函数*/<BR>{<BR>int 
                              j;<BR>for(j=1;j&lt;=4;j++)<BR>{<BR>bar(COL+100*j-35,COM+100-50,COL+100*j+35,COM+100+50);<BR>setcolor(BLUE);<BR>rectangle(COL+100*j-32,COM+100-48,COL+100*j+32,COM+100+48);<BR>rand1(j);<BR>delay(10000);<BR>}<BR>}<BR>void 
                              rand1(int j)<BR>{<BR>int kind,number;<BR>char 
                              str[3];<BR>randomize();<BR>while(1)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;kind=random(4);<BR>&nbsp;&nbsp;&nbsp;num=random(13);<BR>&nbsp;&nbsp;&nbsp;if(p[kind][num]!=-1)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n=p[kind][num];<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;p[kind][num]=-1;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>}<BR>switch(kind)<BR>{<BR>case 
                              0:<BR>setcolor(RED);<BR>sprintf(str,"%c",3);<BR>break;<BR>case 
                              1:<BR>setcolor(BLACK);<BR>sprintf(str,"%c",3);<BR>break;<BR>case 
                              2:<BR>setcolor(RED);<BR>sprintf(str,"%c",4);<BR>break;<BR>case 
                              3:<BR>setcolor(BLACK);<BR>sprintf(str,"%c",5);<BR>break;<BR>}<BR>settextstyle(0,0,2);<BR>outtextxy(COL+j*100-30,ROW+100-46,str);<BR>outtextxy(COL+j*100+16,ROW+100+32,str);<BR>if(n!='0')<BR>{<BR>settextstyle(0,0,3);<BR>sprintf(str,"%c",n);<BR>outtextxy(COL+j*100-5,ROW+100-5,str);<BR>}<BR>else<BR>{<BR>sprintf("str,"%d",10);<BR>outtextxy(COL+j*100-6,ROW+100-5,str);<BR>}<BR>}<BR>int 
                              text1(char 
                              *s)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*显示文本*/<BR>{<BR>setbkcolor(BLUE);<BR>cleardevice();<BR>setcolor(12);<BR>settextstyle(1,0,8);<BR>outtextxy(120,120,s);<BR>setusercharsize(2,1,4,1);<BR>setcolor(15);<BR>settextxy(220,220,s);<BR>getch();<BR>return;<BR>}<BR>void 
                              init()<BR>{int 

⌨️ 快捷键说明

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