1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
taurus [48]
3 years ago
12

Given four files named asiasales2009.txt, europesales2009.txt, africasales2009.txt, latinamericasales2009.txt, define four ofstr

eam objects named asia, europe, africa, and latin, and use them, respectively, to open the four files for writing.
Computers and Technology
1 answer:
Lynna [10]3 years ago
4 0

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");

You might be interested in
Which of the following is true about scalability?
blsea [12.9K]

Answer:

Option (i) is the correct answer to the following question.

Explanation:

Because to achieve the strong scaling then, we have required the Amdahl’s law and the scalability is the weak scaling that is easier to instate than the powerful scaling scalability because of only Amdahl’s law.

So, that's why the following option is correct.

Option (ii) is incorrect because usually, there no communication among the procedures.

Option (iii) is incorrect because the following option is not related to the following statement.

Option (iv) is incorrect because the dependency of the data or information is decreased.

4 0
3 years ago
Which of the following is one of the options available on the Columns menu on the
Norma-Jean [14]

Answer:

d)all of the above

Explanation:

The options available on the column menu on the layout tab are one, two, three left and right. Hence, all of the above options are the options available on the column menu on the layout tab. You can check this by going inside the layout tab, and clicking on the column option. Once you will do this, you will see all of the above-mentioned options showing there. Hence, d. all of the above is the correct choice for this question.

6 0
3 years ago
What’s some WiFi passwords for some big brands that I can connect to while traveling?
Wewaii [24]

Answer:

download the app instabridge.

With Instabridge you get more than a million up-to-date WiFi passwords and spots on your phone.

7 0
3 years ago
Redesign the cover of science textbook using at least two different graphics​
Tanya [424]

Answer:

what design do you want, also what design am i redesigning.

8 0
2 years ago
Write any 2 differences between implicit variables and explicit variables.​Plz tell :' (
Marrrta [24]
Explicit is stated very clearly
Implicit is implied
Explicit leaves no room for confusion
Implicit doesn’t have to be directly stated
3 0
3 years ago
Other questions:
  • Which is the highest level of the hierarchy of needs model?
    7·2 answers
  • What is the full form of ABC?
    9·2 answers
  • A cybersecurity analyst is currently investigating a server outage. The analyst has discovered the following value was entered f
    9·1 answer
  • ____ is the process of drawing a series of increasingly detailed DFDs, until all functional primitives are identified.
    7·1 answer
  • Having friends who cause you stress can decrease your happiness, which can in turn
    13·2 answers
  • Write a program that prompts the user for the name of two files each containing a single line that represents a decimal integerc
    11·1 answer
  • Why do people make Among Us games on Ro-blox, and thousands of people play them, when Among Us is free on all devises?
    10·1 answer
  • Does anyone have Rblx? if so write your username
    6·1 answer
  • please help me to do this computer homework I beg you all please help me to get the answers please its important please ​
    12·1 answer
  • What represents a user’s specific preferences?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!