找回密码
 立即注册→加入我们

QQ登录

只需一步,快速开始

搜索
热搜: 下载 VB C 实现 编写
查看: 1845|回复: 0

【→C#变量 02←】

[复制链接]

4

主题

34

回帖

1

积分

用户组: 初·技术宅

UID
630
精华
0
威望
0 点
宅币
2 个
贡献
-39 次
宅之契约
0 份
在线时间
15 小时
注册时间
2015-1-1
发表于 2015-1-3 12:16:55 | 显示全部楼层 |阅读模式

欢迎访问技术宅的结界,请注册或者登录吧。

您需要 登录 才可以下载或查看,没有账号?立即注册→加入我们

×
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;

  6. namespace 变量
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             string name = "William naismith";//字符串 有一个,0个或多个字符组成,用引号引起
  13.             char sex='男';//字符型 只能由一个字符组成,用单引号引起
  14.             int old = 14;//整数型 范围十位数
  15.             long QQnumber = 1642785615;//长整数型 范围17位数
  16.             Console.WriteLine("name:" + name);
  17.             Console.WriteLine("sex:" + sex);
  18.             Console.WriteLine("old:" + old);
  19.             Console.WriteLine("QQnumber:" + QQnumber);
  20.             Console.ReadKey();

  21.         }
  22.     }
  23. }
复制代码
回复

使用道具 举报

QQ|Archiver|小黑屋|技术宅的结界 ( 滇ICP备16008837号 )|网站地图

GMT+8, 2024-5-1 13:34 , Processed in 0.031105 second(s), 27 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表