system会挂起父进程

execlp("程序名", "程序名", "参数1", "参数2")

 

这样才能将参数正确地传给程序

 

mlgb的,居然是这样

posted @ 2011-03-25 17:59  飞天大蟾蜍  阅读(5)  评论(0编辑  收藏  举报