kevin55

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  101 随笔 :: 0 文章 :: 25 评论 :: 24万 阅读

随笔分类 -  C

摘要:#include "stdafx.h"void PrintFunc(int a[], int n){ for (int i = 0; i low; --j) { if (a[j]AlgoTest.exe0 8 7 6 5 4 3 2 1 90 1 7 6 5... 阅读全文
posted @ 2015-10-14 17:52 kernel_main 阅读(181) 评论(0) 推荐(0) 编辑

摘要:#include "stdafx.h"void PrintFunc(int a[], int n){ for (int i = 0; i =0&& a[j]>x)//重点 { a[j + 1] = a[j]; j... 阅读全文
posted @ 2015-10-14 17:50 kernel_main 阅读(208) 评论(0) 推荐(0) 编辑

摘要:打开调试开关: 阅读全文
posted @ 2015-10-08 10:32 kernel_main 阅读(1306) 评论(0) 推荐(0) 编辑

摘要:http://www.zhangjiee.com/新浪微博@独酌逸醉.Github.GitCafe.stackoverflow.Quorahttp://cpp1x.org/刘未鹏 | MIND HACKShttp://www.drdobbs.com/cpp/其它转自别人:http://blog.cs... 阅读全文
posted @ 2015-09-06 16:15 kernel_main 阅读(535) 评论(0) 推荐(0) 编辑

摘要:值得学习的C语言开源项目C++ 资源大全值得学习的C语言开源项目1.WebbenchWebbench是一个在linux下使用的非常简单的网站压测工具。它使用fork()模拟多个客户端同时访问我们设定的URL,测试网站在压力下工作的性能,最多可以模拟3万个并发连接去测试网站的负载能力。Webbench... 阅读全文
posted @ 2015-07-06 12:48 kernel_main 阅读(3320) 评论(0) 推荐(0) 编辑

摘要:摘自http://www.opensource.apple.com/source/gcc/gcc-5484/gcc/gcov.c 1 /* Gcov.c: prepend line execution counts and branch probabilities to a 2 sou... 阅读全文
posted @ 2015-03-19 11:20 kernel_main 阅读(651) 评论(0) 推荐(0) 编辑

摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include "packet_header.h" 10 #include 11... 阅读全文
posted @ 2014-07-02 23:56 kernel_main 阅读(1051) 评论(0) 推荐(0) 编辑

摘要:http://cs.baylor.edu/~donahoo/practical/CSockets/http://www.nsnam.org/ http://www.nsnam.org/docs/doxygen/modules.html 阅读全文
posted @ 2014-06-30 22:49 kernel_main 阅读(203) 评论(0) 推荐(0) 编辑

摘要:如有软件开发需求,请留言或在猪八戒网主页留言http://home.zhubajie.com/8506525/,常年接收c、c++(vs2010、RAD studio xe5\RAD studio 2010\c++ builder 2010)\c#\python\linux shell等软件开发类项目,热烈欢迎咨询洽谈。下面是前不久做的一个项目:运行效果图: 阅读全文
posted @ 2014-02-13 22:46 kernel_main 阅读(1033) 评论(0) 推荐(0) 编辑

摘要:中缀表达式的计算主要要转换为后缀表达式。例如 中缀表达式->(1+2)*3-4 转换为后缀表达式 12+3*4-至于后缀表达式的计算就很容易了 设定一个栈,然后后缀表达式从左到右一次进栈,如果当前的入栈的是数字就将其压入栈中,如果是运算符,就从栈中弹出两个数字进行相应的运算,然后将运算后的数字压回栈中。当字符串完全处理之后,栈顶就是运算结果PS:输入的后缀表达式是合法的才行。那么中缀表达式如何转换为后缀表达式?(ch接受中缀表达式传递过来的字符)1:ch 是'(' 放入栈;2: ch 是 ‘)’一次输入栈中的运算符,直到遇到‘(’为止3:如果ch是其它的合法字符,将ch与 阅读全文
posted @ 2013-12-02 23:54 kernel_main 阅读(2336) 评论(0) 推荐(0) 编辑

摘要:1 #include 2 3 /* 4 给出一字符串指针,计算出字符串指针中单词数, 5 单词不包括'.',',',';','?','_','"',由0-9数字或26个字母组成 6 by zww @ 2013.09.26 7 vc 6.0编译通过 8 */ 9 10 unsigned int get_string_word_cnt(const char* pStr)11 {12 unsigned int iCnt= 0;13 unsigned int iCharCnt = 0;14 con 阅读全文
posted @ 2013-09-27 00:22 kernel_main 阅读(336) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示