Dear friends, don’t you know how to use VS2012 to write c language? Today, the editor will share the operation content of using VS2012 to write C language. Friends in need can learn it with the editor.
Open vs2012 - File - New - Project Click
Find the templates - other languages - visual c++ - win32 on the left side of the dialog box.
Select "Win32 Console Application" and set the "Name" and "Storage Path" and click OK
Click next
Then check "Empty Project"
Click the menu bar - View - Solution Explorer
Right-click "Source File" in the pop-up floating window
Then select - Add - New item and click
Then select visual c++ and then select "c++ file" and name it holloworld.c
Enter c language code
#include
int main()
{
printf("hello world!");
return 0;
}
Click "Local Windows Debugger" or ctrl + F5
Click Yes
The running result is as shown in the figure
Above, I have shared with you how to use VS2012 to write c language. Friends in need should hurry up and read this article.