cs136 / seashell

Seashell is an online environment for editing, running, and submitting C programming assignments.
GNU General Public License v3.0
38 stars 19 forks source link

Standard output not being printed right away #592

Closed cs136 closed 7 years ago

cs136 commented 7 years ago

Submitter: Tim Brecht This program does not behave as one would expect.

Hello World!

does not get printed until after entering an integer.

kpalway commented 7 years ago

There are currently some issues with output buffering so things don't get printed immediately.. this is fixed by an incoming pull request which should be live within a week.

yc2lee commented 7 years ago

For reference, an example program is

#include <stdio.h>

int main(void) {
  int x = 1234;
  printf("Hello world\n");
  scanf("%d", &x);
  printf("x = %d\n", x);
}