What will happen when you attempt to compile and run the code below, assuming that file test.in contains the following sequence: 1 2 3?
#include
#include
#include
#include
#include
using namespace std;
template
ostream & out;
Out(ostream & o): out(o){}
void operator() (const T & val ) {out< int main () { ifstream f("test.in"); list for( ; f.good() ; ) { int i; f>>i; l.push_back(i); } f.close(); for_each(l.begin(), l.end(), Out return 0; } Program will output:
Dorethea
29 days agoAmie
1 months agoTashia
1 months agoSerita
7 days agoJerry
8 days agoVallie
9 days agoHannah
1 months agoHollis
13 days agoAshlyn
1 months agoRessie
5 days agoTiera
2 months agoDevorah
2 months agoValentine
3 months ago