我是用vs2019写c,但每次都生成失败,代码没有错误,就是生成失败
scanf前面怎么还有引号
有语法错误,用scanf_s代替scanf。另外就是逻辑上的错误,应该如下:
int a, b; scanf_s("%d%d", &a, &b); printf("%d\n", a + b);