I have a function show where I have the
following statements:
cout<<lastname;
cout<<firstname;.....
I created a new function print where I wanted
to saves all data in file. Instead of typing in again
I would like to use the same function print:
print();
How do I write the output from function print in file?
fileout<<print() ; won't work
following statements:
cout<<lastname;
cout<<firstname;.....
I created a new function print where I wanted
to saves all data in file. Instead of typing in again
I would like to use the same function print:
print();
How do I write the output from function print in file?
fileout<<print() ; won't work