What happens when you attempt to compile and run the following code? Choose all that apply.
#include
#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", ios::trunc|ios::out); list for_each(l.begin(), l.end(), Out f.close(); f.open("test.out"); for( ; f.good() ; ) { int i; f>>i; cout< } f.close(); return 0; }
Tamesha
14 days agoMichel
15 days agoGrover
16 days ago