0

what is fileout<<‘’blalalalal’’<<endl; ?

I don’t understand why my teacher using file out instead of cout. And also the function petermeter of ostream&os mean?

9th Sep 2018, 6:00 PM
Jimmy Chen
Jimmy Chen  - avatar
4 Respostas
0
The console output you get when you use cout will be lost after the program finishes ots execution or whem you close the console window. Output in a file is save unless you delete the file or unless it gets overwritten. It's generally good practise to keep output data you want to use in long term session inside files (such as install logs, so user can see what went wrong in case the instalation program fails).
9th Sep 2018, 6:30 PM
Jan Ơtěch
Jan Ơtěch - avatar
+ 2
Jan Ơtěch then we have to create a file for that first using fstream library??
9th Sep 2018, 7:47 PM
blACk sh4d0w
blACk sh4d0w - avatar
+ 1
Jan Ơtěch Ok bro. thanks for informing
9th Sep 2018, 8:36 PM
blACk sh4d0w
blACk sh4d0w - avatar
9th Sep 2018, 8:35 PM
Jan Ơtěch
Jan Ơtěch - avatar