How can i write a C++ program that reads the data from a file into arrays.?
-
how can i read data from a txt file by arrays and find out the highest value and lowest
-
Answer:
int Val; int maxVal; while(!datFile.eof() ) { datFile >> Val; maxVal = Val; if (Val > maxVal) maxVal = Val; }
Abys at Yahoo! Answers Visit the source
Other answers
this will give you a good idea how to do basic c++ ifstream input without getting hiccups at the end.
Jim
Related Q & A:
- How can I write a good reference letter?Best solution by dailywritingtips.com
- How can I design a workout program for myself?Best solution by Yahoo! Answers
- How can I get a bahrain transferable visa in order to find a job?Best solution by evisa.gov.bh
- How can I write a free verse poem?Best solution by wikihow.com
- How can I write a really good mode?Best solution by ChaCha
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.