C中调用子程序
/*father.c*/
#include<stdio.h>
#include<process.h>
void main(){
execv("test.exe",NULL);
printf("father process");
getch();
}
/*test.c*/
#include<stdio.h>
void main(void){
printf("test process\n");
}
执行father.exe后,只显示了test process,没有father process。好像没有回到father,我该怎么办才能让它继续执行father余下的程序段?