visual studio code 输出栏显示[Done] exited with code=1 in 0.07 seconds

IDE是visual studio code

感觉很好用不过我不会配置这玩意



    int m;

    scanf_s("%d",&m);
    printf("I have %d Yuan!!",m);

    getchar();

    return 0;

这是代码
然后输出:

[Running] cd "f:\新建文件夹\" && gcc sa.c -o sa && "f:\新建文件夹\"sa
'gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
�����������

[Done] exited with code=1 in 0.095 seconds

搞得我一脸蒙蔽
请各位前辈指导一下

下个node.js应该可以吧

 

请问解决了嘛?我也遇到了这个问题。。。

我配吗?

https://blog.csdn.net/bat67/article/details/76095813

把lanuch.json文件中的"externalConsole": false, 改成true就行了

你用Microsoft visual studio就没问题了。我试了。


你这样试试:
1,加一句“system("pause > null");”(> null可选)
2,把debug换成Release