using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks; namespace ConsoleApplication6
{
public class Num
{
public string Name { get; set; }
public string Number { get; set; }
public int Row { get; set; } public string Note { get; set; }
} class Program
{
static void Main(string[] args)
{
Console.ForegroundColor = ConsoleColor.Green;
Console.Write("第一批 ");
Console.ForegroundColor = ConsoleColor.Yellow;
Console.Write("第二批 ");
Console.ForegroundColor = ConsoleColor.Red;
Console.Write("第三批 ");
Console.WriteLine("");
List<Num> Num = new List<Num>();
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = }); Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = }); Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = });
Num.Add(new Num { Number = "", Row = , Name = "西西" }); Num.Add(new Num { Number = "", Row = , Name = "熊猫", Note = "" });
Num.Add(new Num { Number = "", Row = , Name = "阿刘", Note = "" });
Num.Add(new Num { Number = "", Row = , Name = "可可", Note = "" });
Num.Add(new Num { Number = "", Row = , Name = "小F ", Note = "" }); Console.WriteLine(Num.Select(o=>o.Number).Count() + " " + Num.Select(o => o.Number).Distinct().Count() ); Console.WriteLine("-----------------------------------------------");
foreach (var item in Num.OrderBy(p=>p.Number))
{
Write(item);
}
var j = ;
Console.WriteLine();
Console.WriteLine("--------------第三批---------------------------"); foreach (var item in Num.Where(o=>o.Row==).OrderBy(p => p.Number))
{
j++;
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine(j.ToString("") + ". " + item.Number + " " + item.Name.ToString() );
}
j = ; Console.ReadKey(true);
}
public static int i = ; public static void Write(Num num)
{
i++;
switch(num.Row)
{
case :
Console.ForegroundColor = ConsoleColor.Green;
Console.Write(num.Number); Console.Write(" "); break;
case :
Console.ForegroundColor = ConsoleColor.Yellow;
Console.Write(num.Number); Console.Write(" "); break;
case :
Console.ForegroundColor = ConsoleColor.Red;
Console.Write(num.Number); Console.Write(" "); break;
case :
Console.ForegroundColor = ConsoleColor.DarkGray;
Console.Write(num.Number); Console.Write(" "); break;
}
if (i % == )
Console.WriteLine();
}
}
}

c# 号码记录,车友的更多相关文章

  1. 十代雅阁广东车友群,雅阁广州车友群,深圳雅阁车友群,雅阁微信群、雅阁车友群、十代雅阁交流微信QQ群

    最近一直在关注第十代雅阁,不论是普通汽油版本还是油电混动版本都很不错,在网上看到很多评测文章和视频 后续都会整理发布到微信群中. 由于论坛发帖,博客发文都不是很方便,为了及时沟通,先创建了微信群,方便 ...

  2. 雅阁微信群、雅阁车友群、十代雅阁交流微信QQ群

    最近一直在关注第十代雅阁,不论是普通汽油版本还是油电混动版本都很不错,在网上看到很多评测文章和视频 后续都会整理发布到微信群中. 由于论坛发帖,博客发文都不是很方便,为了及时沟通,先创建了微信群,方便 ...

  3. UmengShareDemo【友盟分享SDK集成,基于V6.9.3版本】

    版权声明:本文为HaiyuKing原创文章,转载请注明出处! 前言 这里简单记录下友盟分享SDK集成的步骤. 如果想要使用自定义分享对话框实现,请参考<ShareDialogDemo[分享对话框 ...

  4. 我的Java之旅——答答租车系统的改进

    之前的答答租车系统虽然可以实现项目的要求,但是没有用Java面向对象,今天用面向对象的三大特性封装.继承和多态来改进原来的代码.题目和之前的代码参考上篇博客,这里不再述说. 改进后的代码: Vehic ...

  5. c#调用JAVA的Webservice处理XML数据及批量轮询的实现方法

    前段时间做一个调用外单位WEBSERVICE的项目,项目完成的功能其实很简单,就是我们单位有很多车友会员,我们想对他们提供车辆违章信息告之服务!我们这边交警部门给我们开放了WS的接口,我们就是想通过这 ...

  6. 【Spark深入学习 -13】Spark计算引擎剖析

    ----本节内容------- 1.遗留问题解答 2.Spark核心概念 2.1 RDD及RDD操作 2.2 Transformation和Action 2.3 Spark程序架构 2.4 Spark ...

  7. 优步uber司机常见问题与答案(成都地区官方)

    成都地区优步司机常见问题,官方内容,有点多,常出现的问题都收录在这里了,大家可以看看.(注:文章转自官方,非原创) 以下为成都优步合作车主最常见的问题列表和答案.对于绝大多数的车主端问题,您都可以在下 ...

  8. SSAS中事实表中的数据如果因为一对多或多对多关系复制了多份,在维度上聚合的时候还是只算一份

    SSAS事实表中的数据,有时候会因为一对多或多对多关系发生复制变成多份,如下图所示: 图1 我们可以从上面图片中看到,在这个例子中,有三个事实表Fact_People_Money(此表用字段Money ...

  9. 【转】如何保护自己的QQ号

    账号丢失的原因 账号被注销 长时间未登陆 如果你的QQ号是普通号码,在连续三个月不登陆的情况下,腾讯公司会自动收回你的账号,也就意味着这个QQ号码从此再也不属于你了,会员号码是不会被收回的,要想不被收 ...

随机推荐

  1. websocket是如何进行建立连接与通信的?(简单理解)

    握手过程: websocket-client端通过ws协议向websocket-server端发起连接请求前,首先在自己的请求头中添加Sec-Websocket-Key键值对,值为根据自己账号通过一定 ...

  2. POJ 3984(DFS入门题 +stack储存路径)

    POJ 3984 Description 定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, ...

  3. [python](windows)分布式进程问题:pickle模块不能序列化lambda函数

    运行错误:_pickle.PicklingError: Can't pickle <function <lambda> at 0x000002BAAEF12F28>: attr ...

  4. Django Context对象 + 过滤器 + 标签

    玩一玩上下文(context)对象 多数时间,你可以通过传递一个完全填充(full populated)的字典给 Context() 来初始化 上下文(Context) . 但是初始化以后,你也可以从 ...

  5. [Hibernate] hibernate.cfg.xml 配置文件的一些设置

    <!-- 消除:Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect. ...

  6. Dynamic networks | 动态网络

    Dynamic networks reveal key players in aging 系统生物学中的网络分析 网络的拓扑结构:topological properties, 网络的度:whole ...

  7. C#中Equals和= =(等于号)的比较)

    C#中Equals和= =(等于号)的比较) 相信很多人都搞不清Equals和 = =的区别,只是零星的懂一点,现在就让我带大家来进行一些剖析 一.           值类型的比较 对于值类型来说  ...

  8. html网页如何使用哪种浏览器内核渲染的选择

    众所周知,国内的浏览器基本都是双内核的(ie(Trident)+webkit):而且基本默认时都是用webkit内核.尽管IE浏览器体验差,但是有时也会需要用IE内核来渲染的(比如银行网站). 如果要 ...

  9. Matlab:显(隐)式Euler和Richardson外推法变步长求解刚性问题

    一.显示Euler 函数文件:Euler.m function f=Euler(h,Y) f(1,1)=Y(1)+h*(0.01-(1+(Y(1)+1000)*(Y(1)+1))*(0.01+Y(1) ...

  10. vue 数组push元素 视图没更新

    Vue 包含一组观察数组的变异方法,所以它们也将会触发视图更新.这些方法如下: push() pop() shift() unshift() splice() sort() reverse() 问题描 ...