我正在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