So I am trying to Setup C/C++ in VS Code. I installed mingw, the C/C++ Extension in VSCode and Code Runner Code Runner has the following Setting turned on: RunInTerminal
This is the Code I try to run:
#include<stdio.h>
int main()
{
int age;
printf("Enter age\n");
scanf("%d", &age);
printf("Age is %d", age);
return 0;
}
When I click on the run button from Code-Runner the Terminal generates this output:
$ cd "c:\Users\alexa\Desktop\Projekte\C\" && g++ test.cpp -o test && "c:\Users\alexa\Desktop\Projekte\C\"test
bash: cd: c:\Users\alexa\Desktop\Projekte\C" && g++ test.cpp -o test && c:UsersalexaDesktopProjekteC"test: No such file or directory
I know that the problem is that there a missing backslashes in the path used in bash
c:UsersalexaDesktopProjekteC"test
But i cant find a way to fix it. I am on Windows 10