VS Code下使用scan系列函数报错,头疼

Guan · · 2358 次点击
haoyupei
大道至简,始终如一
你的用法错误 类似于C预言 sscanf ```go package main import ( "fmt" ) func main() { var a, b, c int fmt.Println("input 1 2 3") fmt.Scanf("%d %d %d", &a, &b, &c) fmt.Println(a + b + c) } ```
#4
更多评论
求助大神,刚入坑,遇到这样的问题,真叫人头大
#1
``` It looks like you are trying to interact with your program via the debug console as stdin. That is unfortunately not supported at the moment. 输入输出交互暂时不支持调试控制台,使用终端或cmd是正常的 ``` >https://github.com/Microsoft/vscode-go/issues/219
#2