mirror of
https://github.com/QingdaoU/Judger.git
synced 2025-01-01 18:01:41 +00:00
16 lines
228 B
C
16 lines
228 B
C
/*
|
|
* 测试stdout和stderr重定向
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
int main()
|
|
{
|
|
char input[100];
|
|
scanf("%s", input);
|
|
fprintf(stdout, "%s\n", input);
|
|
fprintf(stderr, "%s\n", input);
|
|
return 0;
|
|
}
|