Grading Program - Compile/executing C++ code within C++

前端 未结 2 1213
轮回少年
轮回少年 2020-12-20 07:14

I am writing a program to grade C++ code that students submit. Right now it uses a system call to compile every source file then redirects the input to a file and calls the

2条回答
  •  我在风中等你
    2020-12-20 07:44

    You may want to run the programs under an alternate account, e.g. ssh with key-based authentication is a good way to switch to a dummy account.

    If any of the assignments require user interaction, then expect (which is Tcl-based) would be a good choice.

提交回复
热议问题