我正在尝试调试这个程序,当我在调试模式下运行它时,它工作得很好,但是当它从main返回时,我的意思是当程序执行完成时,在VS Cclode中弹出这个错误消息
#include <stdio.h>
int main(int argc, char** argv) {
int counter = 10;
counter++;
printf("The Counter Value is : %d\n", counter);
printf("Hello World!!\n");
return 0;
}发布于 2020-05-03 01:58:43
当在vs代码中使用Ubantu扩展时,为了调试你的C/C++代码,Vs代码没有权限写入或访问文件,CRT源文件属于Windows Subsystem Linux (WSL),避免这种弹出错误的最好方法是在从main函数返回时放置一个断点
https://stackoverflow.com/questions/61536180
复制相似问题