Exemplo n.º 1
0
        static void Main(string[] args)
        {
            int    i      = 0;
            int    ii     = 0;
            int    iii    = 0;
            char   c      = ' ';
            tables table1 = new tables(26, 3, 8, "table1:");

            for (i = 0; i < table1.rrows.Length; i++)
            {
                c = Convert.ToChar(i + 65);
                for (ii = 0; ii < table1.rrows[0].cols.Length; ii++)
                {
                    table1.rrows[i].cols[ii] = " " + c + "," + Convert.ToString(ii);
                }
            }
            table1.report();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            int    i      = 0;
            int    ii     = 0;
            int    iii    = 0;
            double d      = 0.00f;
            double dd     = 0.00f;
            char   c      = ' ';
            tables table1 = new tables(12, 5, 8, "table1:");

            for (i = 0; i < table1.rrows.Length; i++)
            {
                table1.rrows[i].cols[0] = Convert.ToString(i);
                d = Convert.ToDouble(i) * (360.00f / table1.rrows.Length);
                table1.rrows[i].cols[1] = d.ToString("F1");
                d = Math.Cos(Convert.ToDouble(i) / ((table1.rrows.Length) / 2.00f) * Math.PI);
                table1.rrows[i].cols[2] = d.ToString("F6");
                d = Math.Sin(Convert.ToDouble(i) / ((table1.rrows.Length) / 2.00f) * Math.PI);
                table1.rrows[i].cols[3] = d.ToString("F6");
                d = Math.Tan(Convert.ToDouble(i) / ((table1.rrows.Length) / 2.00f) * Math.PI);
                table1.rrows[i].cols[4] = d.ToString("F6");
            }
            table1.report();
        }