Every time ,I click Run and Debug ,cpp file ,I get to this file,"launch.json" .There is not much enough help in this regard on youtube,also ,I could not solve this problem from VSCode official documentation.
my cpp file
#include<iostream>
using namespace std;
int main(){
int iam;
std::cout<<"salam from Pakistan!";
cout<<endl<<"enter number";
cin>>iam;
return 0;
}
launch.json file
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "C/C++: g++.exe build active file",
"command": "C:\\Program Files\\mingw-w64\\x86_64-8.1.0-posix-seh-rt_v6-rev0\\mingw64\\bin\\g++.exe",
"args": ["-g", "${file}", "-o", "${fileDirname}\\${fileBasenameNoExtension}.exe"],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": ["$gcc"],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Also ,I dont know what is this tasks.json file which I see along with launch.json in .vscode folder.