I saw this somewhere and it made me wonder whether the object in question can contain a value like a function.
If this is possible, can someone please show me how its done?Code:ofstream out("text.txt");
if(!out) { cout<<"Cannot open file"; return; }
//...