Answer:
Step-by-step explanation:
int fscopy(fstream &fsin, fstream &fsout, bool numbered, int spacing)
{int linecount=0;
string s;
getline(fsin, s, '\\');
while (!fsin.fail())
{ linecount++;
if (numbered)
fsout << setw(6) << linecount << " ";
fsout << s << endl;
for (int i=1; i<spacing; i++)
fsout << endl;
getline(fsin, s, '\\'); }
return linecount; }