コード例 #1
0
        static void Main(string[] args)
        {
            CultureInfo customCulture = (System.Globalization.CultureInfo)System.Threading.Thread.CurrentThread.CurrentCulture.Clone();

            customCulture.NumberFormat.NumberDecimalSeparator    = ".";
            System.Threading.Thread.CurrentThread.CurrentCulture = customCulture;
            StreamReader file = new StreamReader(@".\InputFile01.txt");
            string       line;

            while ((line = file.ReadLine()) != null)
            {
                string[] split = line.Split(new char[] { ',' });
                Thread.Sleep(100000000);
                Console.Write(int.Parse(split[1]));
                MyCalculator x = new MyCalculator(line);
                Console.WriteLine(x.getTotal());
            }

            file.Close();
            //string line = "-7-20*76+9/6,500";
            //MyCalculator x = new MyCalculator(line);
            //Console.WriteLine(x.getTotal());

            Console.ReadKey();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: yusufemredundar/studies
        static void Main(string[] args)
        {
            //Defines();

            //int result = Add(15, 30);
            //WriteToScreen("Sonuç=" + result.ToString());

            //int s1 = 20, s2 = 10;
            MyCalculator myCalculator = new MyCalculator();

            //myCalculator.BasicCalculate(s1, s2);
            myCalculator.ComplexCalculate(200, 17);

            Console.ReadKey();
        }