zoukankan      html  css  js  c++  java
  • 每行显示多少个

    public static void PrintValues( IEnumerable myList, int myWidth )  {
     54      int i = myWidth;
     55      foreach ( Object obj in myList ) {
     56         if ( i <= 0 )  {
     57            i = myWidth;
     58            Console.WriteLine();
     59         }

     60         i--;
     61         Console.Write( "{0,8}", obj );
     62      }

     63      Console.WriteLine();
     64   }

  • 相关阅读:
    6.7
    6.5
    6.4随笔
    js 插件
    js插件
    web中集成jdbc
    jsp
    web容器中的servlet
    web服务器的监听器,过滤器
    几款js工具的使用
  • 原文地址:https://www.cnblogs.com/i80386/p/2359512.html
Copyright © 2011-2022 走看看