|
楼主 |
发表于 2022-12-14 06:28:18
|
显示全部楼层
美国
下面是目标程序的go语言源码
package main
import "fmt"
func add(a, b, c, d, e, f, g, h, i, j, k, l, m, n int, ll []int) (int, []int) {
fmt.Println("执行add函数结果如下:")
for i := 0; i < len(ll); i++ {
ll = ll + 1
}
return a + b + c + d + e + f + g + h + i + j + k + l + m + n, ll
}
func main() {
fmt.Println("add函数地址", add)
for {
var input string
ll := []int{111, 222, 333, 444, 555, 666, 777, 888, 999}
fmt.Println(add(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, ll))
fmt.Scanln(&input)
}
}
|
|