Answer:
dataFile << salary;
Explanation:
To write salary to a file (payroll.dat) using ofstream, you make use of the following instruction:
<em>ofstream dataFile;
</em>
<em>myfile.open ("payroll.dat");
</em>
<em>myfile <<salary;
</em>
<em>myfile.close();</em>
<em />
This line creates an instance of ofstream
<em>ofstream dataFile;
</em>
This line opens the file payroll.dat
<em>myfile.open ("payroll.dat");
</em>
This is where the exact instruction in the question is done. This writes the value of salary to payroll.dat
<em>myfile <<salary;
</em>
This closes the opened file
<em>myfile.close();</em>
<em />
<em />
<span>The capacity of a communication channel is measured in gb and gps.</span>
They may not have enough money for the bill at the time, and its easier to pay for insurance for unseen medical procedures.
Answer:
Number of strings = (10, 2)×(8,3) = 2520
Explanation:
The number of possible combinations for taking two 0's is C(10, 2)
It remains 8 Positions
The number of possible combinations for taking three 1's is C(8,3)
So there remains 5 spots