上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: 1、代码2、运行1、代码 1 package main 2 3 import "fmt" 4 5 type Integer int 6 //给in类型添加 Less 方法,int原来的方法被Integer继承 7 func (a Integer) Less (b Integer) bool {... 阅读全文
posted @ 2015-07-06 21:20 fengbohello 阅读(1357) 评论(0) 推荐(0) 编辑
摘要: 1、代码2、编译3、运行1、代码框架/home/fengbo/sorter$ tree.├── bin├── pkg├── readme.txt└── src ├── algorithms │ ├── bubblesort │ │ ├── bubblesort.go │ │ ... 阅读全文
posted @ 2015-07-04 14:31 fengbohello 阅读(641) 评论(1) 推荐(0) 编辑
摘要: 1、代码2、运行1、代码package mainimport "fmt"func MyPrintf(args ...interface{}){ for _, arg := range args { switch arg.(type) { case int : ... 阅读全文
posted @ 2015-07-04 12:37 fengbohello 阅读(1045) 评论(0) 推荐(0) 编辑
摘要: 1、代码2、运行1、代码 1 package main 2 import ( 3 "fmt" 4 "strconv" 5 ) 6 7 func getValue(n int) (float32, string) { 8 var x float32 = float32(n... 阅读全文
posted @ 2015-07-04 11:56 fengbohello 阅读(2065) 评论(0) 推荐(0) 编辑
摘要: 1、代码2、运行1、代码 1 package main 2 import "fmt" 3 4 func main(){ 5 for k:= 0; k 5 { 10 break JLoop11 } 12 ... 阅读全文
posted @ 2015-07-03 00:31 fengbohello 阅读(605) 评论(0) 推荐(0) 编辑
摘要: 1、代码2、运行1、代码 1 package main 2 import "fmt" 3 4 func switch_1(i int){ 5 switch i { 6 case 0 : 7 fmt.Println("0 --: i = ", i); 8 ... 阅读全文
posted @ 2015-07-03 00:22 fengbohello 阅读(717) 评论(0) 推荐(0) 编辑
摘要: 1、代码2、运行1、代码 文件:map.go 1 package main 2 import "fmt" 3 4 type PersionInfo struct{ 5 ID string 6 Name string 7 Address string 8 } 9 10 fu... 阅读全文
posted @ 2015-07-02 23:58 fengbohello 阅读(840) 评论(0) 推荐(0) 编辑
摘要: 一、说安装1、安装 yacc :# yum install byacc2、安装 glib: :# yum install glibc3、安装wireshark :# yum install wireshark4、安装libpcap :# yum install libpcap5、... 阅读全文
posted @ 2015-06-16 13:50 fengbohello 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 1、直接贴过程[fengbo@CentOS: jigsaw]$ rpm -q ncursesncurses-5.7-3.20090208.el6.i686[fengbo@CentOS: jigsaw]$ rpm -q ncurses-develpackage ncurses-devel is not... 阅读全文
posted @ 2015-06-10 22:08 fengbohello 阅读(678) 评论(0) 推荐(0) 编辑
摘要: 1、配置svn的hooks2、实例演示1、配置svn的hooks 1.1)配置情况 承接上篇svn搭建的文章,今次继续使用上篇文章的配置 上篇文章的地址:linux下搭建svn代码库 svn仓库所在的目录为/opt/svn/firsttest 1.2)修改hooks文件post-commit ... 阅读全文
posted @ 2015-06-05 14:02 fengbohello 阅读(3960) 评论(0) 推荐(0) 编辑
摘要: 1、代码2、运行结果1、代码 1 #include 2 #include 3 4 template class ClsQueueData 5 { 6 private : 7 ClsQueueData * __m_next; 8 T * ... 阅读全文
posted @ 2015-06-04 20:52 fengbohello 阅读(2703) 评论(0) 推荐(0) 编辑
摘要: linux使用线程锁访问互斥资源:1、线程锁的创建pthread_mutex_t g_Mutex;2、完整代码如下 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include ... 阅读全文
posted @ 2015-06-04 16:03 fengbohello 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 1、安装svn客户端2、创建svn代码库1、安装svn客户端 1.1、使用命令安装 1)CentOS$ yum install subversion 2)ubuntusudo apt-get install subversion 1.2、源码安装 http://www.cnblogs.co... 阅读全文
posted @ 2015-06-04 09:42 fengbohello 阅读(8113) 评论(3) 推荐(0) 编辑
摘要: 这个版本是上个版本的加强版,上个版本的代码:http://www.cnblogs.com/fengbohello/p/4542912.html 目录 1、代码 2、运行结果 1、代码 1.1 调试信息的配置 1.2 栈类的声明 1.3 构造函数的实现 1.4) 析构函数的实现 1.5)内存控制函数 阅读全文
posted @ 2015-06-02 20:41 fengbohello 阅读(1146) 评论(6) 推荐(0) 编辑
摘要: 1、代码2、运行结果1、代码 stack.cpp#include #include class ClsStack{ private : void ** __m_Data; int __m_pos; size_t __m_memsize; ... 阅读全文
posted @ 2015-05-31 23:01 fengbohello 阅读(718) 评论(0) 推荐(0) 编辑
摘要: 假设我们有一个json字符串,但是我们不知道这个json的组织方式,那么如何进行解析呢,下面就给一个小例子。1、我们的json串如下:{ "aStr": "aaaaaaa", "subobject_1": { "bStr": "bbbbbbb", ... 阅读全文
posted @ 2015-05-29 00:36 fengbohello 阅读(3242) 评论(1) 推荐(0) 编辑
摘要: 1、代码2、运行结果3、分析1、代码 1 #include 2 #include 3 4 typedef struct _Node 5 { 6 int value; 7 struct _Node * pLeft; 8 struct _Node * pRi... 阅读全文
posted @ 2015-05-26 21:24 fengbohello 阅读(1021) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-05-22 09:26 fengbohello 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 这两天一直在寻找android系统的源代码,但是直到一个小时之前,一直未能如愿。但是,令人欣慰的是,现在找到了。网上有不少帖子介绍如何下载android源代码,包括在linux系统,windows系列和mac os系统。但是本人经过测试,并没有发现哪些帖子是切实可行的。这些帖子的内容多因链接过期或者... 阅读全文
posted @ 2015-05-16 22:48 fengbohello 阅读(1360) 评论(0) 推荐(0) 编辑
摘要: ZeroMQ API 目录 :http://www.cnblogs.com/fengbohello/p/4230135.html 本文地址 :http://www.cnblogs.com/fengbohello/p/4474333.html ZeroMQ 官方地址:http://api.zeromq 阅读全文
posted @ 2015-05-03 18:06 fengbohello 阅读(12245) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页