SlideShare a Scribd company logo
1 of 1
Download to read offline
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

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.pdfarjuncorner565
 
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.pdfarjuncorner565
 
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.pdfarjuncorner565
 
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 .pdfarjuncorner565
 
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.pdfarjuncorner565
 
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.pdfarjuncorner565
 
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.pdfarjuncorner565
 
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.pdfarjuncorner565
 
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.pdfarjuncorner565
 
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.pdfarjuncorner565
 
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 .pdfarjuncorner565
 
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.pdfarjuncorner565
 
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.pdfarjuncorner565
 
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.pdfarjuncorner565
 
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.pdfarjuncorner565
 
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 ,.pdfarjuncorner565
 
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.pdfarjuncorner565
 
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..pdfarjuncorner565
 
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 .pdfarjuncorner565
 
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 .pdfarjuncorner565
 

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

Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppCeline George
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnershipsexpandedwebsite
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppCeline George
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxneillewis46
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptxPoojaSen20
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMELOISARIVERA8
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxCeline George
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxLimon Prince
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...EduSkills OECD
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint23600690
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi RajagopalEADTU
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 

Recently uploaded (20)

Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 

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.