编译:gcc x.c
运行:./a.out
自动输入并运行:echo x | ./a.out
x会自动被输入到x.c中的scanf里面。
mac 编译c程序,命令行自动输入
最新推荐文章于 2022-01-07 17:30:51 发布
编译:gcc x.c
运行:./a.out
自动输入并运行:echo x | ./a.out
x会自动被输入到x.c中的scanf里面。