Sound
Sound

Reputation: 43

How do I Compile Just One C File in Visual Studio 2019?

I don't have experience using Visual Studio. The university is conducting a C coding competition and forcing students to use Visual Studio. To practice I created 2 files: "to print helloworld", "finding smallest in the array". Visual studio builds ALL files and I want to create multiple files to save time and keep it ready to code but if I am working on one question and build it, all files get built. How to build one file? Please help.

Upvotes: 4

Views: 3384

Answers (1)

Pibben
Pibben

Reputation: 2025

You need to organize your code into Projects and Solutions. You use one Project per program you write and then group them in a Solution.

Se the docs here: https://learn.microsoft.com/en-us/visualstudio/ide/solutions-and-projects-in-visual-studio?view=vs-2019

Upvotes: 9

Related Questions