I am a beginner so please be undertanding if the question is about sth obvious.
The current version of code is shown below. The output.txt is opened using ifstream and then fed to object of type Coll which is used because it understands "understands" the format of output.txt file generated.
std::system("./Pogram > output.txt");
Coll inputout;
ifstream ifsout("output.txt");
ifsout >> inputout;
My objective is to get rid of the intermediate output.txt and do sth like shown below.
FILE * f = popen("./Program", "r");
Coll inputout;
f >> inputout;
This yields the following error though:
error: no match for ‘operator>>’ in ‘f >> inputout’
Can you suggest any remedy to that?