SlideShare a Scribd company logo
Computer Programming class (c++)
(1) What is the name of a library you must include in your program when you access files? (4
points)
(2) What is the name of a type for declaring input file stream? (3 points)
(3) What is the name of a type for declaring output file stream? (3 points)
Solution
1>Name of a library you must include in your program: fstream
Before a file stream can be used for I/O, it must be declared just as you would declare any other
variables.
2>The type for input file stream variables is ifstream.
3>The type for output file stream variables is ofstream.

More Related Content

More from arjuncorner565

Question 7 (2 points)A researcher conducts a study on the realtion.pdf
Question 7 (2 points)A researcher conducts a study on the realtion.pdfQuestion 7 (2 points)A researcher conducts a study on the realtion.pdf
Question 7 (2 points)A researcher conducts a study on the realtion.pdf
arjuncorner565
 
Need the mutiple choice answered uslde .An)_can omunicate with a sys.pdf
Need the mutiple choice answered uslde .An)_can omunicate with a sys.pdfNeed the mutiple choice answered uslde .An)_can omunicate with a sys.pdf
Need the mutiple choice answered uslde .An)_can omunicate with a sys.pdf
arjuncorner565
 
Need a strong biologistgeneticist to answer this P element question.pdf
Need a strong biologistgeneticist to answer this P element question.pdfNeed a strong biologistgeneticist to answer this P element question.pdf
Need a strong biologistgeneticist to answer this P element question.pdf
arjuncorner565
 
Modify HuffmanTree.java and HuffmanNode.java to allow the user to se.pdf
Modify HuffmanTree.java and HuffmanNode.java to allow the user to se.pdfModify HuffmanTree.java and HuffmanNode.java to allow the user to se.pdf
Modify HuffmanTree.java and HuffmanNode.java to allow the user to se.pdf
arjuncorner565
 
Listed are 2 of the core theories of evolution. For each, give a def.pdf
Listed are 2 of the core theories of evolution. For each, give a def.pdfListed are 2 of the core theories of evolution. For each, give a def.pdf
Listed are 2 of the core theories of evolution. For each, give a def.pdf
arjuncorner565
 
Identify the function of the circulatory system in fishes. Explain h.pdf
Identify the function of the circulatory system in fishes. Explain h.pdfIdentify the function of the circulatory system in fishes. Explain h.pdf
Identify the function of the circulatory system in fishes. Explain h.pdf
arjuncorner565
 
How did the discovery of three categories of petite mutations in yea.pdf
How did the discovery of three categories of petite mutations in yea.pdfHow did the discovery of three categories of petite mutations in yea.pdf
How did the discovery of three categories of petite mutations in yea.pdf
arjuncorner565
 
5. Discuss the pros and cons of American business being excluded by .pdf
5. Discuss the pros and cons of American business being excluded by .pdf5. Discuss the pros and cons of American business being excluded by .pdf
5. Discuss the pros and cons of American business being excluded by .pdf
arjuncorner565
 
Explain the chemical basis of why proteins have such a large variety .pdf
Explain the chemical basis of why proteins have such a large variety .pdfExplain the chemical basis of why proteins have such a large variety .pdf
Explain the chemical basis of why proteins have such a large variety .pdf
arjuncorner565
 

More from arjuncorner565 (20)

select all that apply to ground substanceSolutionLets us see w.pdf
select all that apply to ground substanceSolutionLets us see w.pdfselect all that apply to ground substanceSolutionLets us see w.pdf
select all that apply to ground substanceSolutionLets us see w.pdf
 
Relying on the above pathway for biosynthesis of tryptophan, fill i.pdf
Relying on the above pathway for biosynthesis of tryptophan, fill i.pdfRelying on the above pathway for biosynthesis of tryptophan, fill i.pdf
Relying on the above pathway for biosynthesis of tryptophan, fill i.pdf
 
Question 7 (2 points)A researcher conducts a study on the realtion.pdf
Question 7 (2 points)A researcher conducts a study on the realtion.pdfQuestion 7 (2 points)A researcher conducts a study on the realtion.pdf
Question 7 (2 points)A researcher conducts a study on the realtion.pdf
 
Primary difference between the income sections for form 1120 and .pdf
Primary difference between the income sections for form 1120 and .pdfPrimary difference between the income sections for form 1120 and .pdf
Primary difference between the income sections for form 1120 and .pdf
 
Once its readable i will be okay.SolutionI will be okay in.pdf
Once its readable i will be okay.SolutionI will be okay in.pdfOnce its readable i will be okay.SolutionI will be okay in.pdf
Once its readable i will be okay.SolutionI will be okay in.pdf
 
Need the mutiple choice answered uslde .An)_can omunicate with a sys.pdf
Need the mutiple choice answered uslde .An)_can omunicate with a sys.pdfNeed the mutiple choice answered uslde .An)_can omunicate with a sys.pdf
Need the mutiple choice answered uslde .An)_can omunicate with a sys.pdf
 
Need a strong biologistgeneticist to answer this P element question.pdf
Need a strong biologistgeneticist to answer this P element question.pdfNeed a strong biologistgeneticist to answer this P element question.pdf
Need a strong biologistgeneticist to answer this P element question.pdf
 
Modify HuffmanTree.java and HuffmanNode.java to allow the user to se.pdf
Modify HuffmanTree.java and HuffmanNode.java to allow the user to se.pdfModify HuffmanTree.java and HuffmanNode.java to allow the user to se.pdf
Modify HuffmanTree.java and HuffmanNode.java to allow the user to se.pdf
 
Listed are 2 of the core theories of evolution. For each, give a def.pdf
Listed are 2 of the core theories of evolution. For each, give a def.pdfListed are 2 of the core theories of evolution. For each, give a def.pdf
Listed are 2 of the core theories of evolution. For each, give a def.pdf
 
Light is confined within the core of a simple clad optical fiber by.pdf
Light is confined within the core of a simple clad optical fiber by.pdfLight is confined within the core of a simple clad optical fiber by.pdf
Light is confined within the core of a simple clad optical fiber by.pdf
 
Let L R^n rightarrow R^m be a linear transformation. Show that if n .pdf
Let L R^n rightarrow R^m be a linear transformation. Show that if n .pdfLet L R^n rightarrow R^m be a linear transformation. Show that if n .pdf
Let L R^n rightarrow R^m be a linear transformation. Show that if n .pdf
 
IS path vector routing algorithm closer to the distance vector rou.pdf
IS path vector routing algorithm closer to the distance vector rou.pdfIS path vector routing algorithm closer to the distance vector rou.pdf
IS path vector routing algorithm closer to the distance vector rou.pdf
 
a growth medium that can determine if a bacterium contains several d.pdf
a growth medium that can determine if a bacterium contains several d.pdfa growth medium that can determine if a bacterium contains several d.pdf
a growth medium that can determine if a bacterium contains several d.pdf
 
Identify the function of the circulatory system in fishes. Explain h.pdf
Identify the function of the circulatory system in fishes. Explain h.pdfIdentify the function of the circulatory system in fishes. Explain h.pdf
Identify the function of the circulatory system in fishes. Explain h.pdf
 
How did the discovery of three categories of petite mutations in yea.pdf
How did the discovery of three categories of petite mutations in yea.pdfHow did the discovery of three categories of petite mutations in yea.pdf
How did the discovery of three categories of petite mutations in yea.pdf
 
A certain system can experience 2 difference types of defects. Let ,.pdf
A certain system can experience 2 difference types of defects. Let ,.pdfA certain system can experience 2 difference types of defects. Let ,.pdf
A certain system can experience 2 difference types of defects. Let ,.pdf
 
Find to three decimal places, the coordinate of point P lying in the.pdf
Find to three decimal places, the coordinate of point P lying in the.pdfFind to three decimal places, the coordinate of point P lying in the.pdf
Find to three decimal places, the coordinate of point P lying in the.pdf
 
Find the mobility (DoF) and Grashof condition of the mechanism below..pdf
Find the mobility (DoF) and Grashof condition of the mechanism below..pdfFind the mobility (DoF) and Grashof condition of the mechanism below..pdf
Find the mobility (DoF) and Grashof condition of the mechanism below..pdf
 
5. Discuss the pros and cons of American business being excluded by .pdf
5. Discuss the pros and cons of American business being excluded by .pdf5. Discuss the pros and cons of American business being excluded by .pdf
5. Discuss the pros and cons of American business being excluded by .pdf
 
Explain the chemical basis of why proteins have such a large variety .pdf
Explain the chemical basis of why proteins have such a large variety .pdfExplain the chemical basis of why proteins have such a large variety .pdf
Explain the chemical basis of why proteins have such a large variety .pdf
 

Recently uploaded

plant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsplant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated crops
parmarsneha2
 

Recently uploaded (20)

Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
plant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsplant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated crops
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 

Computer Programming class (c++)(1) What is the name of a library .pdf

  • 1. Computer Programming class (c++) (1) What is the name of a library you must include in your program when you access files? (4 points) (2) What is the name of a type for declaring input file stream? (3 points) (3) What is the name of a type for declaring output file stream? (3 points) Solution 1>Name of a library you must include in your program: fstream Before a file stream can be used for I/O, it must be declared just as you would declare any other variables. 2>The type for input file stream variables is ifstream. 3>The type for output file stream variables is ofstream.