63 223
Assignments Done
Successfully Done
In July 2018

Answer to Question #16199 in C++ for patrick

Question #16199
write output file, add the number of the last number of each file
Expert's answer
Dear visitor
Unfortunately, the statement of your question is a bit confusing.
What do you need to be done? Please, give us the details so we could help you

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


Assignment Expert
12.10.12, 18:12

You're welcome. We are glad to be helpful.
If you really liked our service please press like-button beside answer field. Thank you!

12.10.12, 17:51

thanks alot! :)

Assignment Expert
12.10.12, 15:35

#include <string>
#include <fstream>
#include <iostream>
using namespace std;

int main()
{ int x[66],y;
ifstream ff("File.txt");

& int i=0,n=0;&
& while(!ff.eof()) {

& }
ofstream fff("File2.txt");
for (n=0;n<(i-1);n++)
fff<<x[n]+x[i-1]<<" ";


11.10.12, 02:35

you are supposed to add a number to every number in the file of the last number in the file,for example we have these numbers in the file 2 62 7 1 8 9 and 9 here happens to be our last number,so in our output file we should have 11 71 16 10 17 18

Leave a comment

Ask Your question

Privacy policy Terms and Conditions