Skip to content

7MoOdY2002/EASY-COMPETITIVE-PROGRAMMING-WITH-VISUAL-STUDIO-2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 

Repository files navigation

EASY COMPETITIVE PROGRAMMING WITH VISUAL STUDIO 2022 🌟

How to easily have a project where you can compile multiple cpps (for competitve programming) using VS2022

First you create an empty project:

image

You create your new cpp file and start work with it (I mean to finish your problem) πŸ–₯️

Here you can see how you create a new cpp file:

-First go to Source files right click and press "Add" and "New item" or hit on your keyboard "CTRL+SHIFT+A"

-Select "C++ File(.cpp) and give it a name

image

After you finish up the problem (I hope it got accepted πŸ’) you set the property exclude from build to that cpp to "YES" and start to work on another problem

To do that your right click the cpp in the explorer window, hit properties and set exclude from build to "YES"

Here you can see how:

image

Of course it is reversible and you can anytime set it back to "NO", but pay attention to have everytime just only one them set to "NO" because if not you will get an error (you can only have one main function 😞), so long story short, you should have set to "NO"the one you want to work and compile on and the rest of thme set to "YES", and you just switch from one and another.

Here is a little example:

image


I don't particularly think this is the best way to do it, but this is how i manage my projects for competitve programming, I hope this helped you and thank you very much for reading! πŸ€—

About

How to easily have a project where you can compile multiple cpp (for competitve programming) using VS2022

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published