記錄遇到的問題與解決方式, 記錄想傳遞的知識與技巧
#include <stdio.h> int main(){ int x; scanf("%d", &x); printf("%d", x); return 0; }
$ gcc test.c -o test
$ ./test < input.txt # integer 5 in input.txt $ 5 # program output