Beispiel #1
0
        public int GetOperandInt(string input)
        {
            int intValue;

            Console.WriteLine(input);
            while (!int.TryParse(input, out intValue))
            {
                input = IoManager.ReadOperand("Input must be double number !");
            }
            return(intValue);
        }
Beispiel #2
0
        public double GetOperandDouble(string input)
        {
            double doubleValue;

            Console.WriteLine(input);
            while (!double.TryParse(input, out doubleValue))
            {
                input = IoManager.ReadOperand("Input must be double number !");
            }
            return(doubleValue);
        }