Пример #1
0
        public static bool Compile(this Submission obj)  //need to make it into an object
        {
            bool Compiled;

            if (obj.Input.Language == "C")
            {
                obj.Output.CompileOutput = obj.CompileC();
            }
            else if (obj.Input.Language == "C++")
            {
                obj.Output.CompileOutput = obj.CompileCpp();
            }
            else if (obj.Input.Language == "Java")
            {
                obj.Output.CompileOutput = obj.CompileJava();
            }

            //determine if the file was compiled
            Compiled = obj.IsCompiled();

            return(Compiled);
        }