有没有办法在DrRacket制作一张简单的图表?

时间:2017-08-26 01:40:42

标签: database graph charts racket dr.racket

我一直在网上寻找答案,但我发现的只是绘制点和创建图表的方法。我受到这个健身追踪器的启发(https://www.reddit.com/r/Racket/comments/5ywuf8/my_hobby_project_in_racket_a_fitness_activity/)我试图制作一个跟踪餐馆食物的应用程序。所以,例如,

using System;

namespace Bob
{
    public interface IFather
    {
        string TypeName { get; }
        string OverridableTypeName { get; }
    }

    public class Son : IFather
    {
        public string TypeName { get; } = "Son";
        public virtual string OverridableTypeName { get; } = "Son";
    }

    public class Grandson : Son //, IFather
    {
        public string TypeName { get; } = "Grandson";
        public override string OverridableTypeName { get; } = "Grandson";
    }

    public class Program
    {
        static void Main(string[] args)
        {
            var son = new Son();

            Console.WriteLine(son.TypeName);
            Console.WriteLine(son.OverridableTypeName);
            Console.WriteLine(((IFather)son).TypeName);
            Console.WriteLine(((IFather)son).OverridableTypeName);

            var grandson = new Grandson();

            Console.WriteLine(grandson.TypeName);
            Console.WriteLine(grandson.OverridableTypeName);
            Console.WriteLine(((Son)grandson).TypeName);
            Console.WriteLine(((Son)grandson).OverridableTypeName);
            Console.WriteLine(((IFather)grandson).TypeName);
            Console.WriteLine(((IFather)grandson).OverridableTypeName);

            Console.ReadLine();
        }
    }
}

我想将信息放入图表中,稍后将其转换为收到的食物图表。有任何想法吗?如果你能指出一个如何做到这一点的来源或文档,那将是很棒的。我还想知道是否还要创建一个很好的gui来接受用户的输入。谢谢!

0 个答案:

没有答案