当前位置:网站首页>编写第一个C#应用程序——Hello, C#
编写第一个C#应用程序——Hello, C#
2022-06-21 16:19:00 【DXB2021】
新建项目
使用Visual Studio 2022开发环境编写C#程序 。


点击“创建新项目”

拉下菜单,选择“C#”,然后选择“控制台应用(.NET Framework)” ,然后,点击“下一步”。

项目名称,位置等等自行操作。最后按一下“创建”。

添加程序语句
通过Visual Studio 2022中创建一个非常简单的Project程序, 在命令行中输入相应的内容,来了解C#的编程过程以及Visual C#的具体操作流程。

运行程序
代码输入完成以后,可以通过以下三种方法来运行。
1、在菜单栏上选择“调试”-“开始执行(不调试)”命令。

2、编译环境中使用快捷键Ctrl+F5直接开始执行。
3、单击工具栏中的
按钮。
输出结果:

运行结果:
边栏推荐
- nest.js实战之模块依赖传递性
- 在线直播系统源码,实现进入页面就去请求列表接口并触底分页加载
- Seventy years of neural network: review and Prospect
- 稳若磐石的焱融 SaaS 服务平台背后,是数据生态的崛起
- PingCAP 入选 2022 Gartner 云数据库“客户之声”,获评“卓越表现者”最高分
- Viewing technological changes through Huawei Corps (IV): interactive media (Music)
- 大型网站技术架构 | 应用服务器安全防御
- Excess rlsp
- Fragment and activity value transfer
- EtherCAT igh主站控制埃斯顿伺服回零
猜你喜欢

Accélérer le déploiement de l'application Native Cloud et compléter l'authentification de compatibilité entre Yanrong yrcloudfile et Tianyi Cloud

Runmaide medical passed the listing hearing: it is expected that the loss will increase, with huoyunfei brothers holding about 33%

Common setting modes

Zhong'an insurance, together with Alibaba health and huiyitianxia, explores a new model of Internet chronic disease management

拦截器实现网页用户登陆

智慧三农数字王宁:适合初学者的前5日交易秘诀

vector的模拟实现

加密大崩盘,Web3游戏到底还有没有未来?5篇论文深度探讨

Stm32f1 and stm32subeide programming example - linear Hall effect sensor driver

Application architecture principles
随机推荐
Excess rlsp
Class, interface, function
Kubernetes + Yanrong SaaS data service platform, personalized demand support has never been lost
数字藏品系统开发,NFT艺术品交易平台搭建
海恩法则和费曼学习法
Deeply understand the attention mechanism of map
Live broadcast platform development, live broadcast of each category and single example design display
Software test system learning and construction (13) - basic requirements for test engineers of test foundation
Not graduated from a first-class university, but passed the self-study software test and entered the initial 22K annual salary of Alibaba
Two understandings of Bayes formula
Characteristic requirements of MES system in sheet metal industry
AttributeError: module ‘cv2‘ has no attribute ‘gapi_ wip_ gst_ GStreamerPipeline‘
ViT杀疯了,10+视觉Transformer模型详解
大型网站技术架构 | 应用服务器安全防御
The way for programmers to learn
Analysis of 43 cases of MATLAB neural network: Chapter 27 prediction of LVQ Neural Network - face orientation recognition
加速雲原生應用落地,焱融 YRCloudFile 與天翼雲完成兼容性認證
Vscade tool
EtherCAT igh 'Fatal Sync Error'——0x002C,0x001A
一招教你通过焱融 SaaS 数据服务平台+ELK 让日志帮你做决策