SlideShare a Scribd company logo
1 of 7
For any Homework related queries, Call us at : - +1 678 648 4277
You can mail us at :- info@cpphomeworkhelp.com or
reach us at :- https://www.cpphomeworkhelp.com/
1. Create two textfiles FILE1.TXT and FILE2.TXT. Store the following content in these
two textfiles:
File 1:
Hello I C++
File 2:
World Love
2. Create another Textfile FILE3.TXT, which contains the text of FILE1 merged with
that of FILE2 in the following way:
Hello World I
Love C++
To do this, create 3 separate objects – 2 in input mode and one in output mode. You
will also have to use conditional statements to check for the ends of files.
3. Now add the following content to your existing textfile:
a) I Love 6.096 too!
b)Several more lines added by the user (inputting should continue as long as the user
wishes – ask the user after every line he/she inputs!)
Problem
cpphomeworkhelp.com
3. Finally, count and print:
a)The number of occurrences of the letter ‘O’ in your file File 3.txt.
b)The number of occurrences of the word “Love” in your file File3.txt (You can use
the strcmp() function of file cstring here, or compare using string objects, with
which you can use the ==operator)
cpphomeworkhelp.com
#include<iostream>
#include<fstream>
#include<conio.h>
#include<math.h>
#include<string.h> using
namespace std;
// Part 1
void CreateTextFile()
{
fstream F1,F2;
F1.open("FILE1.TXT",ios::out);
F2.open("FILE2.TXT",ios::out);
F1<<"Hello"<<endl;
F1<<"I"<<endl;
F1<<"C++"<<endl;
F2<<"World"<<endl;
F2<<"Love"<<endl;
F1.close();
F2.close();
}
// Part 2
void MergeFiles()
{
Solution
cpphomeworkhelp.com
fstream F1,F2,F3; F1.open("FILE1.TXT",ios::in);
F2.open("FILE2.TXT",ios::in);
F3.open("FILE3.TXT",ios::out); string S1,S2;
while((F1>>S1)&&(F2>>S2))
{
F3<<S1<<endl; F3<<S2<<endl;
}
while(F1>>S1)
{
F3<<S1<<endl;
}
while(F2>>S2)
{
F3<<S2<<endl;
}
F1.close();
F2.close();
F3.close();
}
// Part 3
voidAddtoFiles()
{
fstream F1; F1.open("FILE3.TXT",ios::app); F1<<"I
Love 6.096 too!"<<endl; char str[80];
cpphomeworkhelp.com
char ch; do
{
cout<<"Text?";cin.getline(str,80);
F1<<str<<endl;
cout<<"Continue?(Y/N)";cin>>ch;
}while(ch!='N');
F1.close();
}
// Part 4 void CountO()
{
fstream F1; char ch;
int CountO=0;
F1.open("FILE1.TXT",ios::in);
while(!F1.eof())
{
ch=F1.get(); if(ch=='O' ||
ch=='o')
CountO++;
}
cout<<"This has :"<<CountO<<" O's "<<endl;
F1.close();
}
cpphomeworkhelp.com
void CountLove()
{
fstream F1; char str[80];
int CountL=0;
F1.open("FILE1.TXT",ios::in);
while(F1>>str)
{
if(strcmp(str,"Love")==0)
CountL++;
}
cout<<"This has :"<<CountL<<" Loves "<<endl;
F1.close();
}
cpphomeworkhelp.com

More Related Content

Similar to C++ Programming Homework Help

C++ helps you to format the I/O operations like determining the number of dig...
C++ helps you to format the I/O operations like determining the number of dig...C++ helps you to format the I/O operations like determining the number of dig...
C++ helps you to format the I/O operations like determining the number of dig...bhargavi804095
 
Introduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptxIntroduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptxNEHARAJPUT239591
 
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJIntroduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJmeharikiros2
 
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...bhargavi804095
 
CIS 273 Education Specialist / snaptutorial.com
CIS 273  Education Specialist / snaptutorial.comCIS 273  Education Specialist / snaptutorial.com
CIS 273 Education Specialist / snaptutorial.comMcdonaldRyan138
 
Assignment- C++ Write a program that reads a text file using binary mo.docx
Assignment- C++ Write a program that reads a text file using binary mo.docxAssignment- C++ Write a program that reads a text file using binary mo.docx
Assignment- C++ Write a program that reads a text file using binary mo.docxbickerstaffinell
 
Project 2 Assigned Tuesday February 21tst2023 Due Tuesd.pdf
Project 2 Assigned Tuesday February 21tst2023 Due Tuesd.pdfProject 2 Assigned Tuesday February 21tst2023 Due Tuesd.pdf
Project 2 Assigned Tuesday February 21tst2023 Due Tuesd.pdfabhaykush25
 
INSTRUCTIONS For this assignment you will be generating all code on y.pdf
 INSTRUCTIONS For this assignment you will be generating all code on y.pdf INSTRUCTIONS For this assignment you will be generating all code on y.pdf
INSTRUCTIONS For this assignment you will be generating all code on y.pdfadayarboot
 
Csc1100 lecture15 ch09
Csc1100 lecture15 ch09Csc1100 lecture15 ch09
Csc1100 lecture15 ch09IIUM
 
INTERNET APPLICATION AND EMAIL:
INTERNET APPLICATION AND EMAIL:INTERNET APPLICATION AND EMAIL:
INTERNET APPLICATION AND EMAIL:shahzadebaujiti
 
Python reading and writing files
Python reading and writing filesPython reading and writing files
Python reading and writing filesMukesh Tekwani
 
Introduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).docIntroduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).docMayurWagh46
 
1 Introduction to PHP Overview This lab walks y.docx
1  Introduction to PHP Overview This lab walks y.docx1  Introduction to PHP Overview This lab walks y.docx
1 Introduction to PHP Overview This lab walks y.docxhoney725342
 
Hiding Malicious Content in PDF Documents
Hiding Malicious Content in PDF DocumentsHiding Malicious Content in PDF Documents
Hiding Malicious Content in PDF Documentsdeathwing
 
Introduction to C Language (By: Shujaat Abbas)
Introduction to C Language (By: Shujaat Abbas)Introduction to C Language (By: Shujaat Abbas)
Introduction to C Language (By: Shujaat Abbas)Shujaat Abbas
 

Similar to C++ Programming Homework Help (20)

Manual
ManualManual
Manual
 
C++ helps you to format the I/O operations like determining the number of dig...
C++ helps you to format the I/O operations like determining the number of dig...C++ helps you to format the I/O operations like determining the number of dig...
C++ helps you to format the I/O operations like determining the number of dig...
 
Introduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptxIntroduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptx
 
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJIntroduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
 
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...
 
CIS 273 Education Specialist / snaptutorial.com
CIS 273  Education Specialist / snaptutorial.comCIS 273  Education Specialist / snaptutorial.com
CIS 273 Education Specialist / snaptutorial.com
 
Assignment- C++ Write a program that reads a text file using binary mo.docx
Assignment- C++ Write a program that reads a text file using binary mo.docxAssignment- C++ Write a program that reads a text file using binary mo.docx
Assignment- C++ Write a program that reads a text file using binary mo.docx
 
Project 2 Assigned Tuesday February 21tst2023 Due Tuesd.pdf
Project 2 Assigned Tuesday February 21tst2023 Due Tuesd.pdfProject 2 Assigned Tuesday February 21tst2023 Due Tuesd.pdf
Project 2 Assigned Tuesday February 21tst2023 Due Tuesd.pdf
 
A05
A05A05
A05
 
Ppm design
Ppm designPpm design
Ppm design
 
INSTRUCTIONS For this assignment you will be generating all code on y.pdf
 INSTRUCTIONS For this assignment you will be generating all code on y.pdf INSTRUCTIONS For this assignment you will be generating all code on y.pdf
INSTRUCTIONS For this assignment you will be generating all code on y.pdf
 
Csc1100 lecture15 ch09
Csc1100 lecture15 ch09Csc1100 lecture15 ch09
Csc1100 lecture15 ch09
 
INTERNET APPLICATION AND EMAIL:
INTERNET APPLICATION AND EMAIL:INTERNET APPLICATION AND EMAIL:
INTERNET APPLICATION AND EMAIL:
 
Python reading and writing files
Python reading and writing filesPython reading and writing files
Python reading and writing files
 
Introduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).docIntroduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).doc
 
1 Introduction to PHP Overview This lab walks y.docx
1  Introduction to PHP Overview This lab walks y.docx1  Introduction to PHP Overview This lab walks y.docx
1 Introduction to PHP Overview This lab walks y.docx
 
Hiding Malicious Content in PDF Documents
Hiding Malicious Content in PDF DocumentsHiding Malicious Content in PDF Documents
Hiding Malicious Content in PDF Documents
 
Introduction to C Language (By: Shujaat Abbas)
Introduction to C Language (By: Shujaat Abbas)Introduction to C Language (By: Shujaat Abbas)
Introduction to C Language (By: Shujaat Abbas)
 
ch09.ppt
ch09.pptch09.ppt
ch09.ppt
 
Data file handling
Data file handlingData file handling
Data file handling
 

More from C++ Homework Help (19)

cpp promo ppt.pptx
cpp promo ppt.pptxcpp promo ppt.pptx
cpp promo ppt.pptx
 
CPP Homework Help
CPP Homework HelpCPP Homework Help
CPP Homework Help
 
CPP homework help
CPP homework helpCPP homework help
CPP homework help
 
CPP Programming Homework Help
CPP Programming Homework HelpCPP Programming Homework Help
CPP Programming Homework Help
 
Online CPP Homework Help
Online CPP Homework HelpOnline CPP Homework Help
Online CPP Homework Help
 
CPP Homework Help
CPP Homework HelpCPP Homework Help
CPP Homework Help
 
C++ Homework Help
C++ Homework HelpC++ Homework Help
C++ Homework Help
 
C++ Programming Homework Help
C++ Programming Homework HelpC++ Programming Homework Help
C++ Programming Homework Help
 
Get Fast C++ Homework Help
Get Fast C++ Homework HelpGet Fast C++ Homework Help
Get Fast C++ Homework Help
 
Best C++ Programming Homework Help
Best C++ Programming Homework HelpBest C++ Programming Homework Help
Best C++ Programming Homework Help
 
CPP Homework Help
CPP Homework HelpCPP Homework Help
CPP Homework Help
 
CPP Programming Homework Help
CPP Programming Homework HelpCPP Programming Homework Help
CPP Programming Homework Help
 
CPP Homework Help
CPP Homework HelpCPP Homework Help
CPP Homework Help
 
CPP Assignment Help
CPP Assignment HelpCPP Assignment Help
CPP Assignment Help
 
CPP Homework help
CPP Homework helpCPP Homework help
CPP Homework help
 
CPP homework help
CPP homework helpCPP homework help
CPP homework help
 
CPP Homework Help
CPP Homework HelpCPP Homework Help
CPP Homework Help
 
CPP Homework Help
CPP Homework HelpCPP Homework Help
CPP Homework Help
 
Cpp Homework Help
Cpp Homework Help Cpp Homework Help
Cpp Homework Help
 

Recently uploaded

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 

Recently uploaded (20)

INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 

C++ Programming Homework Help

  • 1. For any Homework related queries, Call us at : - +1 678 648 4277 You can mail us at :- info@cpphomeworkhelp.com or reach us at :- https://www.cpphomeworkhelp.com/
  • 2. 1. Create two textfiles FILE1.TXT and FILE2.TXT. Store the following content in these two textfiles: File 1: Hello I C++ File 2: World Love 2. Create another Textfile FILE3.TXT, which contains the text of FILE1 merged with that of FILE2 in the following way: Hello World I Love C++ To do this, create 3 separate objects – 2 in input mode and one in output mode. You will also have to use conditional statements to check for the ends of files. 3. Now add the following content to your existing textfile: a) I Love 6.096 too! b)Several more lines added by the user (inputting should continue as long as the user wishes – ask the user after every line he/she inputs!) Problem cpphomeworkhelp.com
  • 3. 3. Finally, count and print: a)The number of occurrences of the letter ‘O’ in your file File 3.txt. b)The number of occurrences of the word “Love” in your file File3.txt (You can use the strcmp() function of file cstring here, or compare using string objects, with which you can use the ==operator) cpphomeworkhelp.com
  • 4. #include<iostream> #include<fstream> #include<conio.h> #include<math.h> #include<string.h> using namespace std; // Part 1 void CreateTextFile() { fstream F1,F2; F1.open("FILE1.TXT",ios::out); F2.open("FILE2.TXT",ios::out); F1<<"Hello"<<endl; F1<<"I"<<endl; F1<<"C++"<<endl; F2<<"World"<<endl; F2<<"Love"<<endl; F1.close(); F2.close(); } // Part 2 void MergeFiles() { Solution cpphomeworkhelp.com
  • 5. fstream F1,F2,F3; F1.open("FILE1.TXT",ios::in); F2.open("FILE2.TXT",ios::in); F3.open("FILE3.TXT",ios::out); string S1,S2; while((F1>>S1)&&(F2>>S2)) { F3<<S1<<endl; F3<<S2<<endl; } while(F1>>S1) { F3<<S1<<endl; } while(F2>>S2) { F3<<S2<<endl; } F1.close(); F2.close(); F3.close(); } // Part 3 voidAddtoFiles() { fstream F1; F1.open("FILE3.TXT",ios::app); F1<<"I Love 6.096 too!"<<endl; char str[80]; cpphomeworkhelp.com
  • 6. char ch; do { cout<<"Text?";cin.getline(str,80); F1<<str<<endl; cout<<"Continue?(Y/N)";cin>>ch; }while(ch!='N'); F1.close(); } // Part 4 void CountO() { fstream F1; char ch; int CountO=0; F1.open("FILE1.TXT",ios::in); while(!F1.eof()) { ch=F1.get(); if(ch=='O' || ch=='o') CountO++; } cout<<"This has :"<<CountO<<" O's "<<endl; F1.close(); } cpphomeworkhelp.com
  • 7. void CountLove() { fstream F1; char str[80]; int CountL=0; F1.open("FILE1.TXT",ios::in); while(F1>>str) { if(strcmp(str,"Love")==0) CountL++; } cout<<"This has :"<<CountL<<" Loves "<<endl; F1.close(); } cpphomeworkhelp.com