跳转到主要内容
你行网

Main navigation

  • 首页
  • Drupal
  • 编程与开发
  • 数据库
  • 操作系统与应用
  • 服务器与运维
  • 社区
User account menu
  • 登录

面包屑

  1. 首页

c#入门 笔记1

由 hzy, 22 十月, 2023

//using System;
//程序自带,故不用写,正常要写。

//注释  tip:CTRL K 加 CTRL c 快捷键 注释选中内容
//1. 两杠注释  “//” 注释一行 如下
// 这个是两杠注释。
//2. 星号注释 如下
/*
* 
* 飞机辣椒粉拉几个垃圾按时交付流口水的
*/
//

// 3. 三杠注释

namespace lesson1_第一个应用程序
///
/// 注释命名空间
///
{
   ///
   /// 注释类 
   ///
   internal class Program       
   {
       /// <summary>
       /// 注释函数
       /// </summary>
       /// <param name="args"></param>
       static void Main(string[] args)
       {
           Console.WriteLine("Hello, World!");

           Console.WriteLine("NI HAO SHI JIE");
           //在控制台打印出 NI HAO SHI JIE


           /*
            * Console.WriteLine()和Console.Write()的区别:
            * 前者打印内容并换行 后者打印内容不换行
            * Console.ReadLine()和Console.Readkey()的区别:
            * 前者检测是否用户按回车键 后者检测用户是否按任意键
            */

           Console.WriteLine("请输入您的姓名");
           Console.ReadLine();
           Console.WriteLine("请输入您的班级");
           Console.ReadLine();
           Console.WriteLine("请输入您的年龄");
           Console.ReadLine();

           Console.WriteLine("---------------------");
           Console.WriteLine("请问你喜欢什么运动?");
           Console.ReadLine();
           Console.WriteLine("好巧,我也喜欢");


           Console.WriteLine("**********");
           for(int i = 0; i < 8; i++)
           {
               Console.WriteLine();
               Console.WriteLine("*        *");                
           }
           Console.WriteLine("**********");

           Console.WriteLine("按回车键结束该程序");
           Console.ReadLine();

       }
   }
}

  • 登录或注册以发表评论

文章标签

  • csharp

评论

文章标签

CSS
Excel
ubuntu
php
vim
五笔
Linux
VPN
command
HTML
drupal 8
drupal 7
centos
composer
Mysql
drush
模块(module)
Drupal
JavaSrcipt
apache
drupal 9
英语
nerdtree
SEO
network
果树种植
surround
drupal10
主题(theme)
ssh
phpmyadmin
yum
二进制
权限
声音
ssl
selinux
HTML5
WireGuard
password
Dreamweaver
DDEV
flameshot
翻译
颜色
uploadprogress
firewalld
kernel
邮件验证
视图(views)
快捷键
gzip
xdebug
错误
电脑基础
ckeditor
C语言
简介
源地址
mbstring
certbot
php扩展
git
csharp
httpd
apt
电子秤
压缩解压
breadcrumb
表单
短信验证
AI
firmware
摄影
diff
superfish
重定向
drupal 11
网站备份
docker
版本号
tagclouds
java
RSS
adsense
端口
电脑技巧
simple_adsense
KVM
算法
youtube
JavaScript
cookie
badblocks
网站运营
计算机基础
RFID
zip
标签优化
VUE
dns
gimp
form
mod_expires 模块
赚钱
ip
http验证
curl
重定向,301
netstat
字段
maven
input
nginx
哈希值
npm
wps
更多

相关文章

  • c#入门 笔记2 变量
RSS源

友情链接 网站地图 版权信息 联系我们 网址导航 社区

Copyright © 2019 - 2021 你行网 版权所有  粤ICP备19072650号