hello C#
一:程序
1.新建项目

2.修改名称位置
需要选择控制台应用程序。

3.项目新建后的效果

4.书写第一个程序
//下面是引用命名空间
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//下面是定义命名空间
namespace HelloWorld
{
//定义类
class Program
{
//定义方法
static void Main(string[] args)
{
//方法体
Console.WriteLine("hello C#");
}
}
}
5.效果
ctrl+F5

二:快捷键
1.Home
使得光标调到最前方
2.End
使得光标调到最后面
3.shift
光标所在的位置开始按下shift,然后光标移动一个位置后再按下光标,
就可以选中期间的所有内容
三:标识符
1.要求
@字符只能放在标识符的首位。
数字不能放在首位
字母与下划线可以放在任何地方
不能使用关键字
四:块
1.块
以大括号开始,以大括号结束
快后面不能带分号
随机推荐
- EF crud操作
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.T ...
- luogu P1445 [Violet]嘤F♂A
博主决定更博文啦 这道题一开始没什么思路啊qwq 要求 \(\frac{1}{x}+\frac{1}{y}=\frac{1}{n!}\) 的正整数解总数 首先通分,得 \[\frac{x+y}{xy} ...
- 第18月第25天 github下载单个文件夹 git命令
1. 用 SVN 即可. 举例说明: 譬如这个项目: Mooophy/Cpp-Primer · GitHub, 我只想看 ch03 文件夹的代码怎么办? 先打开 ch03, 其 URL 为: &quo ...
- python - 用类写装饰器
这里用到了__call__的class内置参数 #类装饰器: class zsq(): #本质是定义一个参数,让装饰的主题传递至__call__方法内部 def __init__(self,obj): ...
- ViewPager制作APP引导页+若干动画效果
ViewPager使用FragmentStatePagerAdapter做Adapter,引导页使用多Fragment形式. 见http://www.cnblogs.com/bmbh/p/567276 ...
- ubuntu14.04 提示 卷 文件系统根目录 仅剩余xxx的硬盘空间
- Linux分区设置
基本3个就可以了 序号 路径 大小 格式 ① /boot 200MB ext4 ② 物理内存*1-1.5 swap ③ / 剩余存储空间 ext4
- caffe源码阅读(1)_整体框架和简介(摘录)
原文链接:https://www.zhihu.com/question/27982282 1.Caffe代码层次.回答里面有人说熟悉Blob,Layer,Net,Solver这样的几大类,我比较赞同. ...
- nodejs 使用http模块保存源码
var xpath=require("xpath"); var fs=require("fs"); var dom = require('xmldom').DO ...
- saltstack文件模块的replace操作简化
代码已经过测试 import re import mmap import os import shutil old_text='test' new_text='text' path=r'C:\User ...