您现在的位置:计算机技术学习网 > 技术中心 > 编程开发 > C >

c语言课程设计_五子棋双人对战程序

来源:不详 责任编辑:栏目编辑 发表时间:2013-07-01 04:36 点击:
 /**********************************************************/ /* 本程序在Turbo C或Borland C下编译通过 */ /* 五子棋 双人对战程序 */ /* &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; */ /**********************************************************/ /**********************************************************/ /* 程序中用到的库函数所在头文件应用 #include 命令包含进来 */ #include &lt;stdio.h&gt; #include &lt;bios.h&gt; #include &lt;ctype.h&gt; #include &lt;conio.h&gt; #include &lt;dos.h&gt; /**********************************************************/ /* 定义符号常量 */ /*定义画棋盘所需的制表符*/ #define CROSSRU 0xbf /*右上角点*/ #define CROSSLU 0xda /*左上角点*/ #define CROSSLD 0xc0 /*左下角点*/ #define CROSSRD 0xd9 /*右下角点*/ #define CROSSL 0xc3 /*左边*/ #define CROSSR 0xb4 /*右边*/ #define CROSSU 0xc2 /*上边*/ #define CROSSD 0xc1 /*下边*/ #define CROSS 0xc5 /*十字交叉点*/ /*定义棋盘左上角点在屏幕上的位置*/ #define MAPXOFT 5 #define MAPYOFT 2 /*定义1号玩家的操作键键码*/ #define PLAY1UP 0x1157/*上移--'W'*/ #define PLAY1DOWN 0x1f53/*下移--'S'*/ #define PLAY1LEFT 0x1e41/*左移--'A'*/ #define PLAY1RIGHT 0x2044/*右移--'D'*/ #define PLAY1DO 0x3920/*落子--空格键*/ /*定义2号玩家的操作键键码*/ #define PLAY2UP 0x4800/*上移--方向键up*/ #define PLAY2DOWN 0x5000/*下移--方向键down*/ #define PLAY2LEFT 0x4b00/*左移--方向键left*/ #define PLAY2RIGHT 0x4d00/*右移--方向键right*/ #define PLAY2DO 0x1c0d/*落子--回车键Enter*/ /*若想在游戏中途退出, 可按 Esc 键*/ #define ESCAPE 0x011b /*定义棋盘上交叉点的状态, 即该点有无棋子 */ /*若有棋子, 还应能指出是哪个玩家的棋子 */ #define CHESSNULL 0 /*没有棋子*/ #define CHESS1 'O'/*一号玩家的棋子*/ #define CHESS2 'X'/*二号玩家的棋子*/ /*定义按键类别*/ #define KEYEXIT 0/*退出键*/ #define KEYFALLCHESS 1/*落子键*/ #define KEYMOVECURSOR 2/*光标移动键*/ #define KEYINVALID 3/*无效键*/ /*定义符号常量: 真, 假 --- 真为1, 假为0 */ #define TRUE 1 #define FALSE 0 /**********************************************************/ /* 定义数据结构 */ /*棋盘交叉点坐标的数据结构*/ struct point { int x,y; }; /**********************************************************/ /*自定义函数原型说明 */ void Init(void); int GetKey(void); int CheckKey(int press); int ChangeOrder(void); int ChessGo(int Order,struct point Cursor); void DoError(void); void DoOK(void); void DoWin(int Order); void MoveCursor(int Order,int press); void DrawCross(int x,int y); void DrawMap(void); int JudgeWin(int Order,struct point Cursor); int JudgeWinLine(int Order,struct point Cursor,int direction); void ShowOrderMsg(int Order); void EndGame(void); /**********************************************************/ /**********************************************************/ /* 定义全局变量 */ int gPlayOrder; /*指示当前行棋方 */ struct point gCursor; /*光标在棋盘上的位置 */ char gChessBoard[19][19];/*用于记录棋盘上各点的状态*/ /**********************************************************/ /**********************************************************/ /*主函数*/ void main() { int press; int bOutWhile=FALSE;/*退出循环标志*/ Init();/*初始化图象,数据*/ while(1) { press=GetKey();/*获取用户的按键值*/ switch(CheckKey(press))/*判断按键类别*/ { /*是退出键*/ case KEYEXIT: clrscr();/*清屏*/ bOutWhile = TRUE; break; /*是落子键*/ case KEYFALLCHESS: if(ChessGo(gPlayOrder,gCursor)==FALSE)/*走棋*/ DoError();/*落子错误*/ else { DoOK();/*落子正确*/ /*如果当前行棋方赢棋* </div><!--//ArticleCnt--> <div class="pages"><ul></ul></div><!--//pages--> <DIV class=blank15></div> <div class="ad580"><script src='/plus/ad_js.php?aid=14' language='javascript'></script></div> <DIV class=blank5></div> <div class="box3"> <ul> <li onmouseover="shows_box('show_a')" onmouseout="hidds_box('show_a')"> <dl> <dt id="show_a" class="none" onmouseover="shows_box('show_a')" onmouseout="hidds_box('show_a')"> <a href="/data/rssmap.html">RSS订阅</a> </dt> </dl> </li> <li onmouseover="shows_box('show_b')" onmouseout="hidds_box('show_b')"> <dl> <dt id="show_b" class="none" onmouseover="shows_box('show_b')" onmouseout="hidds_box('show_b')"> <a href="/a/bckf/">返回编程开发</a><br /><a href="/">返回到首页</a> </dt> </dl> </li> <li><a href="/plus/erraddsave.php?aid=6855&title=c语言课程设计_五子棋双人对战程序" class='error' target="_blank"></a> </li> </ul> </div><!--//box3--> <div class="box2"> <div><h3>相关新闻>></h3><span></span></div> <ul><li><a href="/a/bckf/c/201307/6862.html" title='c语言课程设计网_学生成绩管理系统4' target=_blank>c语言课程设计网_学生成绩管理系统4</a></li> <li><a href="/a/bckf/c/201307/6861.html" title='C语言课程设计_贪吃蛇游戏' target=_blank>C语言课程设计_贪吃蛇游戏</a></li> <li><a href="/a/bckf/c/201307/6860.html" title='c语言课程设计_学生成绩管理系统6' target=_blank>c语言课程设计_学生成绩管理系统6</a></li> <li><a href="/a/bckf/c/201307/6859.html" title='数据结构课程数据_飞机订票系统' target=_blank>数据结构课程数据_飞机订票系统</a></li> <li><a href="/a/bckf/c/201307/6858.html" title='c语言课程设计_通讯录' target=_blank>c语言课程设计_通讯录</a></li> <li><a href="/a/bckf/c/201307/6857.html" title='c语言课程设计_飞机订票系统' target=_blank>c语言课程设计_飞机订票系统</a></li> <li><a href="/a/bckf/c/201307/6856.html" title='C语言课程设计_贪吃蛇代码' target=_blank>C语言课程设计_贪吃蛇代码</a></li> <li><a href="/a/bckf/c/201307/6854.html" title='c语言课程设计_文本模式下的菜单演示' target=_blank>c语言课程设计_文本模式下的菜单演示</a></li> <li><a href="/a/bckf/c/201307/6853.html" title='c语言课程设计_简单的图像演示' target=_blank>c语言课程设计_简单的图像演示</a></li> <li><a href="/a/bckf/c/201307/6852.html" title='c语言课程设计_猜拳游戏' target=_blank>c语言课程设计_猜拳游戏</a></li> </ul> </div> <div class="pr2_box"> <div class="pr2_left"> <div class="protitle pr_w266"><strong>最新推荐</strong><tt><a href="/a/bckf/" class="white">更多>>></a></tt></div> <div class="pr2_prlist"> <dl><dt><a href="/a/bckf/c/201308/48297.html" target="_blank"><img src="/uploads/allimg/130827/155Z32557-0-lp.jpg" border=0 alt="C++中实现Singlet" /></a></dt><dd><a href="/a/bckf/c/201308/48297.html" title='C++中实现Singlet' target=_blank><b>C++中实现Singlet</b></a></dd></dl> <ul style="line-height:21px;"> <li><a href="/a/bckf/c/201309/49789.html" title='【编程好习惯】判断失败而不是成功' target=_blank>【编程好习惯】判断失败而不是成功</a></li> <li><a href="/a/bckf/c/201309/49788.html" title='【编程好习惯】使用空格增加可读性' target=_blank>【编程好习惯】使用空格增加可读性</a></li> <li><a href="/a/bckf/c/201309/49787.html" title='【编程好习惯】使用sizeof减少内存操作失误' target=_blank>【编程好习惯】使用sizeof减少内存操作失误</a></li> <li><a href="/a/bckf/c/201309/49786.html" title='【编程好习惯】屏蔽编程语言特性' target=_blank>【编程好习惯】屏蔽编程语言特性</a></li> <li><a href="/a/bckf/c/201309/49785.html" title='【编程好习惯】合理运用静态全局或局部数组' target=_blank>【编程好习惯】合理运用静态全局或局部数组</a></li> <li><a href="/a/bckf/c/201309/49784.html" title='【编程好习惯】恰当使用goto语句' target=_blank>【编程好习惯】恰当使用goto语句</a></li> <li><a href="/a/bckf/c/201309/49471.html" title='【编程好习惯】以逆序方式释放分配获得的资源' target=_blank>【编程好习惯】以逆序方式释放分配获得的资源</a></li> </ul> </div> </div> <div class="pr2_right"> <div class="protitle"><strong>热门新闻</strong><tt><a href="/a/bckf/" class="white">进入编程开发频道>></a></strong></tt></div> <div class="pr2_zxlist"> <dl><dt><a href='/a/bckf/c/'>C</a></dt><dd><a href="/a/bckf/c/201307/6862.html" title='c语言课程设计网_学生成绩管理系统4' target=_blank>c语言课程设计网_学生成绩管理系统4</a></dd></dl> <dl><dt><a href='/a/bckf/c/'>C</a></dt><dd><a href="/a/bckf/c/201307/6464.html" title='C语言课程设计报告_学生成绩简单管理程序' target=_blank>C语言课程设计报告_学生成绩简单管理程序</a></dd></dl> <dl><dt><a href='/a/bckf/c/'>C</a></dt><dd><a href="/a/bckf/c/201307/6491.html" title='c语言课程设计_学生成绩管理系统1' target=_blank>c语言课程设计_学生成绩管理系统1</a></dd></dl> <dl><dt><a href='/a/bckf/c/'>C</a></dt><dd><a href="/a/bckf/c/201307/6488.html" title='学生成绩管理系统5_c语言课程设计' target=_blank>学生成绩管理系统5_c语言课程设计</a></dd></dl> <dl><dt><a href='/a/bckf/c/'>C</a></dt><dd><a href="/a/bckf/c/201307/6847.html" title='c语言课程设计_图书管理系统' target=_blank>c语言课程设计_图书管理系统</a></dd></dl> <dl><dt><a href='/a/bckf/c/'>C</a></dt><dd><a href="/a/bckf/c/201307/6490.html" title='c语言课程设计_学生成绩管理系统2' target=_blank>c语言课程设计_学生成绩管理系统2</a></dd></dl> </div> </div> </div><!--//pr2_box--> </div><!--//article_wrap--> <!-- //评论区 --> <DIV class=blank6></div> <!-- //主模板必须要引入/include/dedeajax2.js --> <a name='postform'></a> <div class="mt1"> <dl class="tbox"> <dt> <strong>发表评论</strong><span class="more"></span> </dt> <dd> <div class="dede_comment_post"> <form action="#" method="post" name="feedback"> <input type="hidden" name="dopost" value="send" /> <input type="hidden" name="comtype" value="comments"> <input type="hidden" name="aid" value="6855" /> <input type="hidden" name="fid" id='feedbackfid' value="0" /> <div class="dcmp-title"><small>请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。</small></div> <div class="dcmp-stand"> <input type="radio" name="feedbacktype" checked="1" value="feedback" id="dcmp-stand-neu" /><label for="dcmp-stand-neu"><img src="/templets/images/mood/cmt-neu.gif" />中立</label> <input type="radio" name="feedbacktype" value="good" id="dcmp-stand-good" /><label for="dcmp-stand-good"><img src="/templets/images/mood/cmt-good.gif" />好评</label> <input type="radio" name="feedbacktype" value="bad" id="dcmp-stand-bad" /><label for="dcmp-stand-bad"><img src="/templets/images/mood/cmt-bad.gif" />差评</label> </div> <div class="clr"></div> <div class="dcmp-mood"> <ul> <li><input type="radio" name="face" value="1" checked="1" /><img src="/templets/images/mood/ico-mood-1.gif" /></li> <li><input type="radio" name="face" value="2"/><img src="/templets/images/mood/ico-mood-2.gif" /></li> <li><input type="radio" name="face" value="3"/><img src="/templets/images/mood/ico-mood-3.gif" /></li> <li><input type="radio" name="face" value="4"/><img src="/templets/images/mood/ico-mood-4.gif" /></li> <li><input type="radio" name="face" value="5"/><img src="/templets/images/mood/ico-mood-5.gif" /></li> <li><input type="radio" name="face" value="6"/><img src="/templets/images/mood/ico-mood-6.gif" /></li> <li><input type="radio" name="face" value="7"/><img src="/templets/images/mood/ico-mood-7.gif" /></li> <li><input type="radio" name="face" value="8"/><img src="/templets/images/mood/ico-mood-8.gif" /></li> <li><input type="radio" name="face" value="9"/><img src="/templets/images/mood/ico-mood-9.gif" /></li> <li><input type="radio" name="face" value="10"/><img src="/templets/images/mood/ico-mood-10.gif" /></li> <li><input type="radio" name="face" value="11"/><img src="/templets/images/mood/ico-mood-11.gif" /></li> <li><input type="radio" name="face" value="12"/><img src="/templets/images/mood/ico-mood-12.gif" /></li> </ul> </div><!-- //dcmp-mood --> <div class="dcmp-content" style="margin-left:3px;"> <textarea cols="60" name="msg" rows="5" class="ipt-txt"></textarea> </div> <div class="dcmp-post"> <div class="dcmp-userinfo" id="_ajax_feedback"> 用户名:<input type="text" name="username" size="16" class="ipt-txt" /> 验证码:<input type='text' name='validate' size='4' class='ipt-txt' style="text-transform:uppercase;"/><img src="/include/vdimgck.php" id="validateimg" style="cursor:pointer" onclick="this.src=this.src+'?'" width='60' height='24' title="点击我更换图片" alt="点击我更换图片" /> <input type="checkbox" name="notuser" id="dcmp-submit-guest" /><label for="dcmp-submit-guest" />匿名? </label> </div> <script language="javascript" type="text/javascript">CheckLogin();</script> <div class="dcmp-submit"><button type="button" onClick='PostComment()'>发表评论</button></div> </div><!-- //dcmp-post--> </form> </div><!-- //dede_comment_post --> </dd> </dl> </div><!-- //评论表单区结束 --> <!-- //评论内容区 --> <a name='commettop'></a> <div class="mt1"> <dl class="tbox"> <dt> <strong>最新评论</strong> <span class="more"><a href="/plus/feedback.php?aid=6855">更多&gt;&gt;</a></span> </dt> <!-- //这两个ID的区块必须存在,否则JS会出错 --> <dd id='commetcontentNew'></dd> <dd id='commetcontent'></dd> </dl> </div> <!--//评论载入时异步传输,最后加载(DIGG和评论框须放在评论内容前面),若要提前的把myajax.SendGet改为myajax.SendGet2,但可能引起页面阻滞--> <script language='javascript'> function LoadCommets(page) { var taget_obj = document.getElementById('commetcontent'); var waithtml = "<div style='line-height:50px'><img src='/images/loadinglit.gif' />评论加载中...</div>"; var myajax = new DedeAjax(taget_obj, true, true, '', 'x', waithtml); myajax.SendGet2("/plus/feedback_ajax.php?dopost=getlist&aid=6855&page="+page); DedeXHTTP = null; } function PostComment() { var f = document.feedback; var nface = '6'; var nfeedbacktype = 'feedback'; var nvalidate = ''; var nnotuser = ''; var nusername = ''; var npwd = ''; var taget_obj = $DE('commetcontentNew'); var waithtml = "<div style='line-height:30px'><img src='/images/loadinglit.gif' />正在发送中...</div>"; if(f.msg.value=='') { alert("评论内容不能为空!"); return; } if(f.validate) { if(f.validate.value=='') { alert("请填写验证码!"); return; } else { nvalidate = f.validate.value; } } if(f.msg.value.length > 500) { alert("你的评论是不是太长了?请填写500字以内的评论。"); return; } if(f.feedbacktype) { for(var i=0; i < f.feedbacktype.length; i++) if(f.feedbacktype[i].checked) nfeedbacktype = f.feedbacktype[i].value; } if(f.face) { for(var j=0; j < f.face.length; j++) if(f.face[j].checked) nface = f.face[j].value; } if(f.notuser.checked) nnotuser = '1'; if(f.username) nusername = f.username.value; if(f.pwd) npwd = f.pwd.value; var myajax = new DedeAjax(taget_obj, false, true, '', '', waithtml); myajax.sendlang = 'gb2312'; myajax.AddKeyN('dopost', 'send'); myajax.AddKeyN('aid', '6855'); myajax.AddKeyN('fid', f.fid.value); myajax.AddKeyN('face', nface); myajax.AddKeyN('feedbacktype', nfeedbacktype); myajax.AddKeyN('validate', nvalidate); myajax.AddKeyN('notuser', nnotuser); myajax.AddKeyN('username', nusername); myajax.AddKeyN('pwd', npwd); myajax.AddKeyN('msg', f.msg.value); myajax.SendPost2('/plus/feedback_ajax.php'); f.msg.value = ''; f.fid.value = 0; if(f.validate) { if($DE('validateimg')) $DE('validateimg').src = "/include/vdimgck.php?"+f.validate.value; f.validate.value = ''; } } function quoteCommet(fid) { document.feedback.fid.value = fid; } LoadCommets(1); </script> <!-- //评论内容区结束 --> </div><!--//con_left--> <div class="con_right"> <div class="proph"> <div class="prtit"><h3>今日头条</h3><b><a href="/a/bckf/" class="white">更多>></a></b></div> <ul> <div class="block"><dl><dt><a href="/a/bckf/c/201307/31700.html" title='Glib实例学习(2)双链表' target=_blank>Glib实例学习(2)双链表</a></dt></dl> <ol><a href="/a/bckf/c/201307/31700.html" target="_blank"><img src="/images/defaultpic.gif" border=0 alt="Glib实例学习(2)双链表" /></a><p> <em class="red"><a href="/a/bckf/c/201307/31700.html">[详细]</a></em></p> </ol> </div> </ul> </div><!--//proph end--> <DIV class=blank6></div> <div class="ad300"><script src='/plus/ad_js.php?aid=9' language='javascript'></script></div> <DIV class=blank6></div> <div class="box7"><h3>推荐热点</h3> <ul> <li><a href="/a/bckf/c/201307/31700.html" target="_blank"><img src="/images/defaultpic.gif" border=0 alt="Glib实例学习(2)双链表" /></a></li> <li><a href="/a/bckf/c/201308/48295.html" target="_blank"><img src="/uploads/allimg/130827/155U925A-0-lp.jpg" border=0 alt="C程序员要学C++吗?" /></a></li> <li><a href="/a/bckf/c/201308/48297.html" target="_blank"><img src="/uploads/allimg/130827/155Z32557-0-lp.jpg" border=0 alt="C++中实现Singleton的正确方法" /></a></li> <li><a href="/a/bckf/c/201308/48289.html" target="_blank"><img src="/uploads/allimg/130827/155T54S2-0-lp.jpg" border=0 alt="编程思维训练(一)" /></a></li> <li><a href="/a/bckf/c/201308/48293.html" target="_blank"><img src="/uploads/allimg/130827/155U62520-0-lp.jpg" border=0 alt="【编程好习惯】引入中间变量使程序更易读" /></a></li> <li><a href="/a/bckf/c/201308/48291.html" target="_blank"><img src="/uploads/allimg/130827/155U21207-0-lp.jpg" border=0 alt="在C++中通过模板规避潜在错误" /></a></li> <li><a href="/a/bckf/c/201308/48290.html" target="_blank"><img src="/uploads/allimg/130827/155TQ354-0-lp.jpg" border=0 alt="在C++中通过模板去除强制转换" /></a></li> <li><a href="/a/bckf/c/201308/48288.html" target="_blank"><img src="/uploads/allimg/130827/155T15163-0-lp.png" border=0 alt="【编程好习惯】减少搜索头文件的目录数" /></a></li> </ul> </div> <DIV class=blank6></div> <div class="box5"><h3>您可能感兴趣的文章</h3> <ul> <li><a href="/a/bckf/c/201307/30580.html" title='C语言中一个指针传递问题的分析' target=_blank>C语言中一个指针传递问题的分析</a></li> <li><a href="/a/bckf/c/201307/30127.html" title='[编程好习惯]&nbsp;复用代码以提高可维护性' target=_blank>[编程好习惯]&nbsp;复用代码以提高可维护性</a></li> <li><a href="/a/bckf/c/201309/49463.html" title='【编程好习惯】精确包含头文件' target=_blank>【编程好习惯】精确包含头文件</a></li> <li><a href="/a/bckf/c/201307/29562.html" title='[MFC]CImageList仅显示黑色的问题' target=_blank>[MFC]CImageList仅显示黑色的问题</a></li> <li><a href="/a/bckf/c/201309/49470.html" title='【编程好习惯】利用编程语言特性提高程序执行效率' target=_blank>【编程好习惯】利用编程语言特性提高程序执行效率</a></li> <li><a href="/a/bckf/c/201307/6467.html" title='c语言课程设计_学生成绩管理系统' target=_blank>c语言课程设计_学生成绩管理系统</a></li> <li><a href="/a/bckf/c/201307/30575.html" title='[编程好习惯]&nbsp;&nbsp;判断失败而不是成功' target=_blank>[编程好习惯]&nbsp;&nbsp;判断失败而不是成功</a></li> <li><a href="/a/bckf/c/201309/49465.html" title='【编程好习惯】借助隐式初始化简化程序逻辑' target=_blank>【编程好习惯】借助隐式初始化简化程序逻辑</a></li> <li><a href="/a/bckf/c/201307/968.html" title='VC精华教程:MFC入门系列(二)' target=_blank>VC精华教程:MFC入门系列(二)</a></li> <li><a href="/a/bckf/c/201307/6841.html" title='关于百鸡百钱问题的程序实现' target=_blank>关于百鸡百钱问题的程序实现</a></li> </ul> </div> <DIV class=blank6></div> <DIV class=box8><H3>快速直达</H3> <UL> <li><a href='/a/bckf/csharp/'><span>c#</span></a></li><li><a href='/a/bckf/c/' class='current'><span>C</span></a></li><li><a href='/a/bckf/java/'><span>java</span></a></li><li><a href='/a/bckf/net/'><span>.net</span></a></li><li><a href='/a/bckf/ydkf/'><span>移动开发</span></a></li><li><a href='/a/bckf/go/'><span>GO语言</span></a></li><li><a href='/a/bckf/perl/'><span>Perl</span></a></li><li><a href='/a/bckf/python/'><span>Python</span></a></li> </UL> </DIV> <DIV class=blank6></div> <div class="box9"><h3>新闻点评<a href="/" target="_blank" style='display:none'>智问网络</a></h3> <ul> <li><a href="/a/bckf/c/201307/31700.html" title='Glib实例学习(2)双链表' target=_blank>Glib实例学习(2)双链表</a></li> </ul> </div> <DIV class=blank6></div> <div class="ad300"><script src='/plus/ad_js.php?aid=10' language='javascript'></script></div> <DIV class=blank6></div> <div class="proph"> <div class="prtit"><h3>新闻关注排行榜</h3><b></b></div> <div class="show" id="myTab1"> <span class="showimg1" onmouseover="nTabs(this,0)">热门推荐</span> <span class="showimg2" onmouseover="nTabs(this,1)">最新推荐</span> </div> <ul> <div id="myTab1_con0" class="block"><dl><a href="/a/bckf/c/201307/31700.html" title='Glib实例学习(2)双链表' target=_blank>Glib实例学习(2)双链表</a></dl> <ol><a href="/a/bckf/c/201307/31700.html" target="_blank"><img src="/images/defaultpic.gif" border=0 alt="Glib实例学习(2)双链表" /></a><p> <em class="red"><a href="/a/bckf/c/201307/31700.html">[详细]</a></em></p> </ol> <dl><dt><a href="/a/bckf/c/201308/48295.html" title='C程序员要学C++吗?' target=_blank>C程序员要学C++吗?</a></dt></dl> <dl><dt><a href="/a/bckf/c/201308/48297.html" title='C++中实现Singleton的正确方法' target=_blank>C++中实现Singleton的正确方法</a></dt></dl> <dl><dt><a href="/a/bckf/c/201308/48289.html" title='编程思维训练(一)' target=_blank>编程思维训练(一)</a></dt></dl> <dl><dt><a href="/a/bckf/c/201308/48293.html" title='【编程好习惯】引入中间变量使程序更易读' target=_blank>【编程好习惯】引入中间变量使程序更易读</a></dt></dl> <dl><dt><a href="/a/bckf/c/201308/48291.html" title='在C++中通过模板规避潜在错误' target=_blank>在C++中通过模板规避潜在错误</a></dt></dl> <dl><dt><a href="/a/bckf/c/201308/48290.html" title='在C++中通过模板去除强制转换' target=_blank>在C++中通过模板去除强制转换</a></dt></dl> <dl><dt><a href="/a/bckf/c/201308/48288.html" title='【编程好习惯】减少搜索头文件的目录数' target=_blank>【编程好习惯】减少搜索头文件的目录数</a></dt></dl> </div> <div id="myTab1_con1" class="none"><dl><a href="/a/bckf/c/201308/48297.html" title='C++中实现Singleton的正确方法' target=_blank>C++中实现Singleton的正确方法</a></dl> <ol><a href="/a/bckf/c/201308/48297.html" target="_blank"><img src="/uploads/allimg/130827/155Z32557-0-lp.jpg" border=0 alt="C++中实现Singleton的正确方法" /></a><p>如果某个类管理了系统中唯一的某种资源,那么我们只能创建该类的一个实例,此时用到si<em class="red"><a href="/a/bckf/c/201308/48297.html">[详细]</a></em></p> </ol> <dl><dt><a href="/a/bckf/c/201308/48295.html" title='C程序员要学C++吗?' target=_blank>C程序员要学C++吗?</a></dt></dl> <dl><dt><a href="/a/bckf/c/201308/48293.html" title='【编程好习惯】引入中间变量使程序更易读' target=_blank>【编程好习惯】引入中间变量使程序更易读</a></dt></dl> <dl><dt><a href="/a/bckf/c/201308/48291.html" title='在C++中通过模板规避潜在错误' target=_blank>在C++中通过模板规避潜在错误</a></dt></dl> <dl><dt><a href="/a/bckf/c/201308/48290.html" title='在C++中通过模板去除强制转换' target=_blank>在C++中通过模板去除强制转换</a></dt></dl> <dl><dt><a href="/a/bckf/c/201308/48289.html" title='编程思维训练(一)' target=_blank>编程思维训练(一)</a></dt></dl> <dl><dt><a href="/a/bckf/c/201308/48288.html" title='【编程好习惯】减少搜索头文件的目录数' target=_blank>【编程好习惯】减少搜索头文件的目录数</a></dt></dl> <dl><dt><a href="/a/bckf/c/201307/31700.html" title='Glib实例学习(2)双链表' target=_blank>Glib实例学习(2)双链表</a></dt></dl> </div> </ul> </div><!--//proph end--> <DIV class=blank6></div> </div><!--//con_right--> <DIV style="TEXT-ALIGN: left" class=HomepageNav><H3>编程开发导航</H3> <DIV align=left> <a href='/a/bckf/csharp/'>c#</a><a href='/a/bckf/c/' class='thisclass'>C</a><a href='/a/bckf/java/'>java</a><a href='/a/bckf/net/'>.net</a><a href='/a/bckf/ydkf/'>移动开发</a><a href='/a/bckf/go/'>GO语言</a><a href='/a/bckf/perl/'>Perl</a><a href='/a/bckf/python/'>Python</a> </DIV> </div><!--//HomepageNav--> </div><!--//container--> </div><!--//main--> <div class="foot"> <a href="" target="_blank">网站首页</a> - <a href="/plus/flink.php" target="_blank">友情链接</a> - <a href="/data/sitemap.html">网站地图</a> - <a href="/tags.php">TAG标签</a> - <a href="/data/rssmap.html">RSS订阅</a> - <a href="/plus/heightsearch.php">内容搜索</a><br />Copyright &copy; 2008-2015 计算机技术学习交流网. 版权所有 <div style="display:none"><script type="text/javascript"> var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src=" + _bdhmProtocol + "hm.baidu.com/h.js%3F5b2f1c00e8736eb23f00fd38539062a3 type=text/javascript%3E%3C/script%3E")); </script> </div><br/>豫ICP备11007008号-1 </div> </body> </html>