What will happen when you attempt to compile and run the code below, assuming that file test.out do not exist before the program execution?
#include
#include
#include
#include
#include
using namespace std;
template
ostream & out;
Out(ostream & o): out(o){}
void operator() (const T & val ) {out< int main (){ int t[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; fstream f("test.out"); list for_each(l.begin(), l.end(), Out f.close(); return 0; }
Cristy
3 days agoIzetta
5 days agoCasie
11 days ago