Visual Studio 2022

I am trying to learn C. I am using Windows 10. My problem right now is with Visual Studio 2022. I can't figure out how to use Visual Studio 2022 to enter a simple "Hello World!" type program. Is there an online tutorial or video that shows in detail how to use Visual Studio 2022? Or, is there something else that would be easier for a beginner? Thanks!
With the Visual Studio Installer install the "Desktop development with C++" workload.
https://docs.microsoft.com/en-us/cpp/build/vscpp-step-0-installation?view=msvc-170

Then create the first C program and run it.
https://www.youtube.com/watch?v=0PUZbgcIMzg
In VS2022, if you create a new project, set the filter to "C++/Windows/Console" and select the project type "Console App", then you get exactly that ;-)

1
2
3
4
5
6
7
8
9
// ConsoleApplication.cpp : This file contains the 'main' function. Program execution begins and ends there.
//

#include <iostream>

int main()
{
    std::cout << "Hello World!\n";
}
Last edited on
To be honest Visual Studio has a larger learning curve than some other compilers/IDEs available for C/C++ development on Windows, but once you get used to how to create the various different types of apps it is worth the effort. Visual Studio has arguably the best debugger for Windows.

Keep on plugging away! :)
There a reason you're going for C instead of C++?
Thank you to everyone who took time to reply.
Registered users can post here. Sign in or register to post.