摘要:
// test project main.gopackage mainimport ( "fmt")func main() { var a = [10]int{1, 2, 99, 4, 86, 7, 8, 0, 9, 6} var lens int = len(a) for i := 0; i a[z] { temp := a[i] a[i] = a[z] a[z] = temp } } } fmt.Println(a)} 阅读全文
posted @ 2013-11-02 13:12
c3tc3tc3t
阅读(278)
评论(0)
推荐(0)
浙公网安备 33010602011771号