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!
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";
}
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.