How to use VS2012 to write c language-VS2012 tutorial

Time: 2020-09-08Source: Huajun Software TutorialAuthor: Ai Xiaomo

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

1.jpg

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

1.jpg

Click next

2.jpg

Then check "Empty Project"

3.jpg

Click the menu bar - View - Solution Explorer

3.jpg

Right-click "Source File" in the pop-up floating window

4.jpg

Then select - Add - New item and click

1.jpg

Then select visual c++ and then select "c++ file" and name it holloworld.c

2.jpg

Enter c language code

#include

int main()

{

printf("hello world!");

return 0;

}

Click "Local Windows Debugger" or ctrl + F5

3.jpg

Click Yes

4.jpg

The running result is as shown in the figure

5.jpg

Above, I have shared with you how to use VS2012 to write c language. Friends in need should hurry up and read this article.

Related articles更多>>

Popular recommendations