How to use visual studio

I have installed visual studio and created a project and then opened a cpp file. The first cpp file gets executed and debugged but when I created another cpp file with no errors it says file not found. Why does this happen ?
how can I fix it? please can you give a walkthrough to due visual studio int the Whatsapp group. it is very hard for a beginner to understand visual studio settings

@Souradeep-Kundu-824545687968212 are you using any extensions for cpp? also how exactly are you compiling? I suggest using the command line for compiling and executing programs as that has never given me any problems.

ok so, does one “project” build & debug only one “file” in visual stdio?
so to build and debug 3 cpp file do i have to make 3 seperate projects?
Because in visual studio for example, i made a “project” named “example” and saved it in my desktop, then i made a "empty cpp file named ‘src.cpp’ " after running the code it builds and debugs.
But then i create a new "empty cpp file named ‘src1.cpp’ " after running it, it says file not found.
i used to use dev c++ before and it wasn’t as complicated as visual studio.
In dev c++ you could make many cpp files without mentioning the word “project”.

@Souradeep-Kundu-824545687968212 you dont need to open projects at all. Just open the folder you are keeping your cpp files in and execute them separately, it is quite easy. Go to the folder, right click on your mouse and select open with vs code. You will be able to see all your files on the left side, terminal at the bottom. You can compile and execute each file separately no error will be thrown.

@Souradeep-Kundu-824545687968212 you can open folder from vs code also.

@Souradeep-Kundu-824545687968212 just to clarify, you have to use VS CODE, not visual studio.

Hmm OK. But is there any chance you could please please please help me on setting this up, I have been trying to do these things for the past 8 days, and now i am completely frustrated , i can’t understand why it is not compiling. I have tried vs , vs code, sublime text 3 for c++ for the past 8 DAYS!!! but failed. I am now getting so angry, it takes much more time to setup the environment than to code. I am just a beginner, could you please do it for me using team viewer, please i am begging you, I won’t disturb you anymore if you set it up for me. I have seen so many youtube tutorials, quora, stack overflow, but i cant understand anything. Just give me a tutorial once on how to code with team viewer, please.

@Souradeep-Kundu-824545687968212 have you installed mingw? There’s a section in your course that explains how to do the setup on Sublime Text. If you are still facing issues let me know we will figure something out.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.