Answer:
Option b outFile.open("outputData.out");
Explanation:
In C++, there are several classes given to handle output and input of characters to or from files. They are:
- ofstream that write on files
- ifstream that read from files
We can use an object of ofstream to hold the contents that we wish to output to an external file. The general syntax is as follows:
ofstream_obj.open(file_name)
This will create a file with a specific file name and it possesses all the contents from the obstream_obj.
Answer:
The answer is "classes are the blueprints"
Explanation:
According to the class definition, it is a collection of data members and member methods, in which all the data members can't return any value, and member methods or functions return a value.
- In this question, the carpenter uses the blueprint to build the house, if he uses class and object model.
- This model also known as an entity blueprint, which sets the properties and functions with an object type.
Answer:
You have to like it to be successful in photography.
Explanation:
Answer:
Following are the statement which is given below:
if (gpa > 3.5) // check the condition if gpa exceeds 3.5.
{
deansList++; // increment of 1 in the deansList variable
cout << studentName; // display the studentName,
}
Explanation:
The description of the statement
- In the if statement we check the condition of "gpa" .if "gpa" is greater then 3.5 then it executed the statement inside the if block otherwise nothing will be executed.
- if control moves to the if part it adds to 1 to the deansList.
- Finally, display the value of studentName.
There are ten steps in a research project