Пример #1
0
        public static void Copy()
        {
            int c;

            while ((c = (ptFlag ? PaperTape.Read() : Keyboard.Read())) != -1)
            {
                Printer.Write(c);
            }
        }
Пример #2
0
        public static void Copy()
        {
            int c;

            while ((c = (ptFlag ? PaperTape.Read() : Keyboard.Read())) != -1)
            {
                if (punchFlag)
                {
                    PaperTape.Punch(c);
                }
                else
                {
                    Printer.Write(c);
                }
            }
        }