Anyone knows how to capture the data pipe in from linux ls command in c++ program?
the command is ls - ali and I need to pipe it to a c++ program by ls - ali|./a.out
how do I code the main in c++ to capture the data?
int main()
{
}
what parameters to I need to include?