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 ответов
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