在Java中执行.c文件 [英] execute a .c file in java

查看:163
本文介绍了在Java中执行.c文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想做一个纠正C代码的项目.在该程序中,一个学生上传
他的答案(C代码)和我们的程序应该比较学生程序的输出和
教授给出的正确答案,但我不知道如何在java中执行.c文件:confused:

所以请帮帮我.

Hi ,
I want to do a project that correct the C code. In this program an student upload
his answer(C code) and our program should compare the student program output and the
correct answer that given by professor but I don''t know how to execute a .c file in java :confused:

so please help me.
Thanks

推荐答案

执行" .C文件的唯一方法是首先通过编译器运行它,将其链接,然后执行生成的.EXE文件. br/>
当然,除非您找到一些用Java编写的现成的.C解释执行环境.我怀疑它存在...
The only way to "execute" a .C file is to run it through a compiler first, link it, then execute the resulting .EXE file.

Unless, of course, you find some off-the-wall .C interpreting execution environment written in Java. I doubt it exists...


这篇关于在Java中执行.c文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆