【发布时间】:2021-01-23 05:27:23
【问题描述】:
到目前为止,这是我尝试过的,但是在运行程序后,这显示了一些错误;
#include <stdio.h>
#include <stdlib.h>
int main(){
int number;
printf("Enter the number:");
scanf("%d",&number)
printf("The number is %d",number);
return 0;
}
但是当我运行程序时它显示了这个错误
Program 'hello.exe' failed to run: Access is deniedAt line:1 char:59
+ cd "d:\c\" ; if ($?) { gcc hello.c -o hello } ; if ($?) { .\hello }
+ ~~~~~~~.
At line:1 char:59
+ cd "d:\c\" ; if ($?) { gcc hello.c -o hello } ; if ($?) { .\hello }
+ ~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
【问题讨论】:
标签: c visual-studio-code