C# 创建控制台应用程序
作者:caimouse 时间:2023-10-09 07:27:37
在学习C#语言的时候,首先要学习控制台的应用程序,这样才能专注于语言的学习,减少学习的梯度,也有利于输出自己需要输出的内容。因此第一步学习C#语言时,一定要先使用控制台的应用程序的方式。所以学习本文就是一个好的开始。
先下载VS2019,然后点击创建项目:
点击下一步,就会创建一个控制台的应用程序。
这时控制台的应用程序框架就已经创建好了,只需要输入下面的代码,就可以输出一些文字:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
//
Console.WriteLine("第一个C#的应用程序");
Console.ReadKey();
}
}
}
接着点击启动运行:
就可以实现控制台的应用程序输出了。
来源:https://www.tuicool.com/articles/Ib2imqy
标签:C#,创建,程序
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
springboot-mybatis/JPA流式查询的多种实现方式
2021-07-07 17:25:51
![](https://img.aspxhome.com/file/2023/2/76292_0s.jpg)
springSecurity之AuthenticationProvider用法解析
2022-09-07 20:55:01
![](https://img.aspxhome.com/file/2023/9/64429_0s.png)
Android自定义SwipeRefreshLayout高仿微信朋友圈下拉刷新
2023-01-06 08:51:34
![](https://img.aspxhome.com/file/2023/0/139400_0s.gif)
Java详细分析LCN框架分布式事务
2022-10-17 15:49:08
![](https://img.aspxhome.com/file/2023/2/130012_0s.png)
java 高并发中volatile的实现原理
2022-11-24 19:58:22
C#合并多种格式文件为PDF的方法
2023-12-11 17:46:58
![](https://img.aspxhome.com/file/2023/3/119533_0s.png)
教你轻松制作java视频播放器
2023-06-25 06:34:05
LINQ基础之From和GroupBy子句
2023-06-09 02:46:29
![](https://img.aspxhome.com/file/2023/9/83229_0s.png)
c# SendMail发送邮件实例代码
2023-03-13 11:17:21
win10下配置java环境变量的方法
2022-08-23 17:10:11
![](https://img.aspxhome.com/file/2023/4/71134_0s.png)
SpringBoot中如何统一接口返回与全局异常处理详解
2021-08-11 02:22:35
![](https://img.aspxhome.com/file/2023/9/129229_0s.png)
详解Java中LinkedHashMap
2022-05-23 16:24:45
![](https://img.aspxhome.com/file/2023/1/95031_0s.png)
使用maven运行Java Main的三种方法解析
2021-09-24 10:09:28
Springboot轻量级的监控组件SpringbootAdmin
2023-08-25 10:08:31
![](https://img.aspxhome.com/file/2023/8/58288_0s.png)
Android编程之利用服务实现电话监听的方法
2022-02-16 03:59:42
c# 通过经纬度查询 具体的地址和区域名称
2023-08-15 11:41:53
Android studio 3.5.2安装图文教程详解
2022-06-27 19:15:46
![](https://img.aspxhome.com/file/2023/5/90175_0s.jpg)
实例解析Json反序列化之ObjectMapper(自定义实现反序列化方法)
2023-11-23 18:07:25
java控制台输出百分比进度条示例
2023-08-21 22:58:20
关于RedisTemplate之opsForValue的使用说明
2023-07-09 16:53:04