Linux popen跨进程调用
被调用代码:sum.cpp
#include <stdio.h>
#include <string.h>
#include <errno.h>
int main(int argc,char*argv[])
{
int a = 2;
int b = 3;
printf("==sum is %d\n", a + b);
return a + b;
}
g++ -o sum sum.cpp
调用代码:popen.cpp...
原创
2020-12-18 13:49:24 ·
529 阅读 ·
0 评论