Given four files named asiasales2009.txt, europesales2009.txt, africasales2009.txt, latinamericasales2009.txt, define four ofstream objects named asia, europe, africa, and latin, and use them, respectively, to open the four files for writing.

Answers

Answer 1
Answer:

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


Related Questions

A _____ is a preformatted structure for a document.blogtemplatePDFmemo
Before starting a spreadsheet, it is smarter to plan ahead and think through the design. true or false
1. Default tab stops are set in Word every _______ inch. A. 1B. 1/2 C. 1/4 D. 3/42. Once you've saved a block of text or graphics for easy insertion in other documents, you'll see it in the _______ gallery.A. Photo SpaceB. ClipArtC. Multimedia Online D. Quick Parts3. To set up Automatic Backup on your computer, what option would you choose from the Word Options screen?A. GeneralB. Customize Ribbon C. BackupD. Advanced4. Suppose you want to view a document that has several headings. What view would you use? A.DraftB. ReadC. OutlineD. Web5. _______ allows you to add formatting such as shapes and colors to text. A. WordShapesB. WordDrawC. WordArtD. WordDesign6. What is the default file extension for a file saved in Word 365? A. .docxB. .docextC. .docD. .doc3657. To recover a deleted document, what would you choose in the Info window? A. UndeleteB. RetrieveC. Manage VersionsD. Uninstall8. Which of the following is the shortcut key combination for pasting copied text? A. Ctrl+CB. Ctrl+XC. Ctrl+VD. Ctrl+P9. _______ allows you to specify how a photo is positioned in the text of your document. A. Align PhotoB. Wrap TextC. Align TextD. Wrap Photo10. _______ view focuses on the text and content of a document, without much information on the page layout.A. Draft B. Print C. Outline D. Read11. How do you access the dictionary and thesaurus in Word?A. Click the Dictionary/Thesaurus icon in the upper-left page.B. In the View tab, click the Dictionary icon.C. In the Review tab, click the Define icon next to the Spelling & Grammar tool. D. In the Insert tab, click the Help icon to the left of the Spelling & Grammar tool.12. Users with a Microsoft account have access to an online storage and sharing system known as A.OfficeAnywhere.B. Producer.C. OneDrive.D. WebApps.13. In Word, a red wavy underline indicates a/an A.AutoCorrect suggestion.B. hard page break.C. possible grammatical error.D. possible misspelled word.14. When pointed over text within a paragraph, the cursor takes the shape of a/an A. right-pointing arrow.B. I-beam.C. left-pointing arrow.D. four-headed arrow.15. You send a report to your boss for feedback and she returns it to you with her edits noted in the electronic file. This Word feature is calledA. Markup Changes. B. Online Markup. C. Track Changes. D. Online Edits.16. To remove any hidden data from your document before sharing it, what should you do?A. Click the View tab and then click Protect Document.B. Click the File tab, click Check for Issues, and then click Inspect Document.C. Click the File tab, click Check for Issues, and then click Check Accessibility.D. Click the File tab, click Check for Issues, and then click Protect Document.17. If you want to insert a column into an existing table, what would you do? A. Click Column in the Insert tab.B. Click one of the insert buttons in the Rows & Columns group of the Layout tab.C. Click one of the insert buttons in the Data group of the Layout tab.D. Click in the Table Style Options group of the Design tab.18. To ensure that your computer is saving files by default to your hard drive, A. choose Save in theOptions window and check the box next to Save by default.B. choose Options from the File Info screen, choose Save in the Word Options window, and make sure the box next to Save to Hard Drive is checked.C. click on File, choose Options, click on Save, and make sure the box next to Save to Hard Drive is checked.D. choose Options from the File Info screen, choose Save in the Word Options window, and make sure the box next toSave to Computer by default is checked.19. How do you change the top and bottom margins of an entire document? A. Click the Page Layout tab and then the Orientation button.B. Click on the Tools tab and then on Options.C. Click on the View tab and then on Header and Footer. D. Click the Page Layout tab and then theMargins button.20. Which of the following allows you to view and access important information about your document all in one location?A. Menu barB. Backstage view C. Status barD. Help iconComputer1. B2. Between B and C3. D4. C5. C6. A7. B8. C9. B10. A11. C12. C13. D14. Between B and C15. C16. B17. Between B and D18. D19. D20. Bcan you check this for me please
carter is the web designer for an open source project. he has created a program that facilitates the easy collation of data for a large-scale logistics firm. which of the following is true of the source code for carter's program? question 13 options: a) it is highly protected and obtained only by having a license. b) it is available only to carefully vetted contractors. c) it is less stable and platform dependent. d) it is available to the public.
It is most important to ask questions when looking at media messages because doing soa. provides a higher level of entertainment value. b. helps you to prepare for a career in media. c. enables you to be an intelligent consumer. d. allows you to determine a product's quality.

Linux programming code is owned by Microsoft.
A .True
B. False

Answers

False..................................-----

Adnan is creating a presentation about engineers using geometric shapes in bridge construction. He wants to insertan illustration of a bridge saved in a folder on his computer.
How can he access the folder using the images command group?
After choosing the illustration he wants to add, which button should he click?
Add
Insert
OK
Done
Intro

Answers

Answer:Click Pictures, Insert

Explanation:

Got it right

Answer:

A. A

B. B

Explanation:

George is working with an image in Photoshop. He added a lot of effects to the image. He saved the first draft of the file. The size of this file was 1.5 GB. He finished the work on the image and saved a final draft. The size of this final draft was 2.2 GB. He found that both files were in different formats. What are the formats of the two drafts? The first draft is in format and the final draft is in format.

Answers

Answer:

JPEG, PDF

Explanation:

Answer:The first draft is in JPEG format and the final draft is in PDF format.

:)

The OnStar system allows Select one: a. a vehicle owner to initiate a conversation with an OnStar representative. b. the vehicle to automatically send a message to an OnStar representative after an accident. c. an OnStar representative to disable the gas pedal of the vehicle without the driver's permission. d. a and b e. a, b, and c

Answers

Answer:  e) a, b, and c

Explanation: OnStar system is the secondary service that is provided by the General Motor Corporation , who is the parent company of this system.The services like in-vehicle protection, diagnosing issues from distance emergency services, communication services based on subscriptions, turn by turn navigation etc.

Conversation started with OnStar member by vehicle owner is communication service in hands -free way, vehicle sending message to OnStar member after mishap/accident is type of emergency services and OnStar member putting off the gas pedal without the permission of driver of the the vehicle is also a protect service .Thus, all the given options are correct.

______ is a type of computer software that is installed into devices such as printers, print servers, and various types of communication devices.

Answers

Answer: Firmware

Explanation:Firmware is the type of software program that is used  for the storage of data in a computer system and also for giving the instruction for some particular task.Firmware cannot be installed by the user without the help of special programs. It is usually found in the motherboard of a CPU. It is a partially permanent software and gets updated only by the firmware updater.

The file manager used in Microsoft Windows is

Answers

...Well, it depends what the question is asking.

The name for the file manager is Windows Explorer. It's also a graphical user interface (GUI) as is all of Windows.