I'm new to C++ and have chosen Visual C++ as my IDE.
When I create a project, for example to practise with variables. Can I only save one file with each project if I need to use the main function for each practise file?
For example I have two files open in one project, writing two seperate programs to practise. Both use int main (). When I build I get this error: error LNK2005: _main already defined which is due to using _main in each file.
If I want to practise and save each piece of work that I do, do I need to create a project for each?
Hope this makes sense.