摘要: 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 阅读(2066) 评论(0) 推荐(0) 编辑