我在Vscode中使用C代码时遇到错误

时间:2020-11-02 18:44:02

标签: c visual-studio-code

我正在使用Vscode,并且尝试运行此C代码,在我要求用户输入此“ [运行] cd“ c:\ Users \ hp \ Desktop \ FP”和&gcc lol.c -o之前,它可以正常运行大声笑&&“ c:\ Users \ hp \ Desktop \ FP”大声笑“显示,并且此后没有任何显示

int main()
{   
 int n;
 printf("\nhello");
 
} ```

[Output 1][1]



code 2 for input

 ``` #include<stdio.h>
int main()
{   
 int n;
 printf("\nhello");
 printf("\nEnter any number:");
 scanf("%d",&n);
 printf("\n Hi %d",n);
} ```



[output 2][1]


[1]: https://i.stack.imgur.com/Etryq.png

0 个答案:

没有答案