示例#1
0
        static void built_in_str()
        {
            String_column clmn1 = new String_column();
            int           Size  = 36;

            for (int i = 0; i < Size; i++)
            {
                clmn1[i] = clmn1[i] + " " + i;
            }
            string s = clmn1 + " String column : ";

            Console.WriteLine(s);
        }
示例#2
0
        static void Str_column_matr()
        {
            String_matrix tbl1 = new String_matrix(false);
            String_column tbl2 = new String_column();

            // print out tables
            Console.WriteLine("Code 1: ");
            tbl1.Write_matrix();

            Console.WriteLine("Using  column. ");

            // perform addition and print out  results
            String_matrix tbl3 = tbl1 + tbl2;

            Console.WriteLine();
            Console.WriteLine("Code 1 + column = ");
            tbl3.Write_matrix();
        }