c-program questiontype: echoing stdin to stdout

Re: c-program questiontype: echoing stdin to stdout

de către Michael Fairbank-
Număr de răspunsuri: 1
Hi Richard, we did not manage to implement this yet. We have just explained to the students to expect this behaviour for now.

I wonder if there is a clever trick using Unix streams or similar, which means we pass a flag to the jobe server when it runs program code, which forces it to echo all inputs from the input stream to the console, regardless of whatever language it is running? Then instead of doubling up all language question templates (e.g. creating "python3" vs "python3_w_input", and "C" vs "C_w_input") there is just one checkbox in the code-runner question-setting user-interface called "w_input" or similar? It feels to me that the might be a clever global solution to this problem, lurking underneath somewhere, waiting to be discovered?
Ca răspuns la Michael Fairbank

Re: c-program questiontype: echoing stdin to stdout

de către Richard Lobb-
Yep, it would be nice if there was a better solution. Maybe someone will post something back to this thread in the future.