我正在C++的一個介紹級別課程上進行測驗,我試圖理解一個問題。在搜索了互聯網並沒有得到答案之後,我就在這裏。 Which of the following function declarations will accept either cout or a file stream
object as its argument?
A. void output(fstream &outFile)
我正在與一些功能的程序: int totalDays(ofstream &outputFile, int noEmployee)
{
string fileName = "employeeAbsences.txt";
outputFile.open(fileName);
不過,我不知道該怎麼稱呼它: int main()
{
int employeesNumber = emplo