示例#1
0
文件: Program.cs 项目: bmdevx/Ternary
        static void Mod(Tryte t1, Tryte t2)
        {
            Tryte mod = t1 % t2;

            Console.WriteLine($"Mod: [{mod.ToString("s")}] {mod}");
        }
示例#2
0
文件: Program.cs 项目: bmdevx/Ternary
        static void Multi(Tryte t1, Tryte t2)
        {
            Tryte multi = t1 * t2;

            Console.WriteLine($"Multi: [{multi.ToString("s")}] {multi}");
        }
示例#3
0
文件: Program.cs 项目: bmdevx/Ternary
        static void Div(Tryte t1, Tryte t2)
        {
            Tryte div = t1 / t2;

            Console.WriteLine($"Div: [{div.ToString("s")}] {div}");
        }
示例#4
0
文件: Program.cs 项目: bmdevx/Ternary
 static void DisplayPrev(Tryte t, int offset)
 {
     Console.SetCursorPosition(offset, Console.CursorTop - 1);
     Console.WriteLine($"{t.ToString("s")} {t}");
 }