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 />
Answer:
atof
Explanation:
atof function is used to convert a string to a double.
It takes a single parameter of type const char * and returns a double value.
The function signature is: double atof (const char* str);
In order to use this function in the code, you need to include the header file <stdlib.h>
For example:
#include <stdio.h>
#include <stdlib.h>
int main()
{
char str[5] = "0.01";
double d = atof(str);
printf("Value = %f\n", d);
return 0;
}
Answer:
Cinematography
Explanation:
Cinematography is the blend of art and science and it deals with the recording of moving images on film or a digital storage device.
While making a movie some example of cinematography are the conclusions reached about lighting, camera filters, lenses etc.
The formatting tool is very important. When one effectively understands the various formatting options available in the word processing software application, one can be able to;
- Make more accessible options for readers through creating and use of headings, highlighting key words or ideas etc.
- Formatting any document helps one to have a presentable and professional document.
- It makes the document easier and a lot interesting to read.
- It helps in Proper punctuation marks and spelling usefulness.
<h3>What is formatting in MS Word?</h3>
Formatting text is simply known as the act of controlling how one wants a particular text to appears in your document. This includes the control of the size, color, etc.
Learn more about word processing software from
brainly.com/question/1022352
Answer:
Base name or -b command is used to locate only match directory in Linux.
Explanation:
base name can primarily be used in shell script.
As we know that base name can be described as a standard UNIX computer program. When we give a path name to any base then it deletes each and every prefix up to the last slash character and give back the result. base name can be defined in the Single UNIX Specification