zoukankan      html  css  js  c++  java
  • Convert

     class Applicationdata
     {
       private static ArrayList listxvalue; 
       static Applicationdata()               
            {          
                           listxvalue = new ArrayList();
              }
       public static ArrayList Listxvalue
            {
                get { return listxvalue; }
            }

    // In the main fun
         double[,] transxvalue;
         double[,] xvalue = obtain value from the constructor;
         Applicationdata.Listxvalue.Add(xvalue); // save xvalue into the Listxvalue

         transxvalue = (double[,])Applicationdata.Listxvalue[0];  // Get the value back from Listxvalue.
                                             -----------------------------ArrayList
                             ----------- Convert from ArrayList to double[,] type



  • 相关阅读:
    Asp.Net Page学习
    [转]35岁前务必成功的12级跳
    正则表达式
    Logger实例程序
    【转】心里语言
    MVC学习
    Request类和Response类
    PipeandFilter模式
    请不要做浮躁的人[转]
    Bnumber [HDU 3652]
  • 原文地址:https://www.cnblogs.com/greencolor/p/1562184.html
Copyright © 2011-2022 走看看