摘要: 一,并发package mainimport ( "bufio" "fmt" "math" "os")const result = "Polar radius=%.02f θ=%.02f° → Cartesian x=%.02f y=%.02f\n"var prompt = ... 阅读全文
posted @ 2015-08-03 14:41 诡城 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 一,自定义栈package stackimport "errors"type Stack []interface{}func (stack *Stack) Pop(interface{}, error) { theStack := *stack if len(theStack) == 0... 阅读全文
posted @ 2015-08-03 10:51 诡城 阅读(333) 评论(0) 推荐(0) 编辑