Hello Friendz,
Suppose I have a program like
// A.cpp
int main()
{
if(some_condition)
return 1;
return 0;
}
Now from another program I want to run the above program, like
//B.cpp
int main()
{
...
...
system("A");
...
...
return 0;
}
Here how can I catch the return value of program A from the program B.
Amit