linux下 c程序,例如a1.c a2.c a3.c已经通过gcc编译成可执行的程序。
运行./a1 输出“hello1”
运行./a2 输出“hello2”
运行./a3 输出“hello3”
现在需求是写一段c代码程序aa.c,在里面可以配置参数选择执行a1, a2, a3哪个程序,
编译aa.c,
运行./aa -a1 输出“hello1”,
运行./aa -a2 输出“hello2”,
运行./aa -a3 输出“hello3”,
linux下 aa.c程序怎么写?