If fhun gftrfjjtcbjjbsufcghtfghyrssfbkoire crazy ahh young man
<span>Go paperless.
Use natural lighting.
Grow trees nearby.
Reduce, reuse, and recycle.
Carpool.
</span>
Answer:
ofstream asia("asiasales2009.txt"); //It is used to open asiasales2009.txt files with the asia objects.
ofstream europe("europesales2009.txt"); //It is used to open europesales2009.txt files with the europe objects.
ofstream africa("africasales2009.txt");
//It is used to open africasales2009.txt files with the africa objects.
ofstream latin("latinamericasales2009.txt");//It is used to open latinamericasales2009.txt files with the latin objects.
Explanation:
- The above code is written in the c++ language which is used to open the specified files with the specified objects by the help of ofstream class as described in the question-statements.
- The ofstream is used to open the file in the c++ programing language, so when a user wants to use the ofstream to open the file in written mode, then he needs to follow the below syntax--
ofstream object("file_name_with_extension");
Answer:
A constructor doesn't have a return type.
The name of the constructor must be the same as the name of the class.
Unlike methods, constructors are not considered to be members of a class.
A constructor is called when a new instance of an object is created.
Explanation: