【发布时间】:2021-05-08 11:25:44
【问题描述】:
#include <stdio.h>
int main()
{
int a,b;
printf("Enter the value of a\n");
scanf("%d",&a);
printf("Enter the value of b\n");
scanf("%d",&b);
printf("The sum of a and b is %d", a + b);
return 0;
}
当我在 Microsoft Visual Code 中运行此代码时,代码不会停止执行,我也不会得到输出。它开始运行,但不会停止。我也没有得到任何输出。其他类型的代码运行良好。 任何人都可以帮助我吗? click here for image from vscode showing the running window
【问题讨论】:
-
它要求您输入内容后会发生什么?您是否设法在运行时打印了一些东西?
-
先去掉文件路径中的所有空格,在 OneDrive 以外的地方试试
-
它甚至不要求我输入..它只是继续运行而没有任何输出..检查我提供的图像
标签: c visual-studio-code compiler-errors runtime-error