当前位置:网站首页>Write the first C application -- Hello, C

Write the first C application -- Hello, C

2022-06-22 04:10:00 DXB2021

New projects

Use Visual Studio 2022 Development environment C# Program .

Click on “ Create a new project ”

Pull down the menu , choice “C#”, And then choose “ Console Application (.NET Framework)” , then , Click on “ next step ”.

Project name , Position and so on . Finally, click “ establish ”.

 

Add program statement

adopt Visual Studio 2022 Create a very simple Project Program , Enter the corresponding contents in the command line , To get to know C# And Visual C# The specific operation process .

 

Run the program

After the code is entered , There are three ways to run .

1、 On the menu bar, select “ debugging ”-“ Start execution ( Don't debugging )” command .

2、 Use shortcut keys in the compilation environment Ctrl+F5 Go straight to execution .

3、 Click... In the toolbar   Button . 

Output results :

 

Running results :

 

原网站

版权声明
本文为[DXB2021]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/172/202206211619418591.html