![]() |
|
#1
|
|||
|
|||
Reading from a text fie into an arrayI am supposed to create a program that reads 7 numbers from a text file and then out puts then it should calculate the average of the 7 numbers, find the largest number and the smallest and outputs the result into the screen and a new text file
I am having problems reading from the text file. Here is what I've come up with so far but it's not even compiling. There are errors. Can someone help me out please? CPP / C++ / C Code:
Thanks Last edited by admin : 14-Nov-2008 at 00:48.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
|||
|
#2
|
|||
|
|||
Re: Help with readig from a text fie into an array c++Quote:
Quote:
Quote:
http://www.cplusplus.com/doc/tutorial/files.html ...& begin by getting the string data from the file. Once you accomplished this, respond back with specific questions. |
|
#3
|
|||
|
|||
Re: Reading from a text fie into an arrayCPP / C++ / C Code:
hope this little code will help |
|
#4
|
|||
|
|||
Re: Reading from a text fie into an arrayQuote:
|
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Power Calibration Error In Nero Fix (hopefully) | matt3678 | Computer Hardware Forum | 60 | 20-Aug-2009 06:04 |
| where is the problem and can you fix it (php) | oggie | MySQL / PHP Forum | 8 | 14-Apr-2008 16:08 |
| Getting a line error in register | oggie | MySQL / PHP Forum | 5 | 13-Apr-2008 17:16 |
| Need help deleting the last element in the array | headphone69 | C++ Forum | 2 | 15-Mar-2006 20:31 |
| How to read unknown total of int data from text file to a 2-dim array in C or C++? | ladyscarlet99 | C Programming Language | 2 | 09-Sep-2005 15:07 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The