![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Apr 2008
Posts: 1
Rep Power: 0
![]() |
array issue
2 questions first did the main daniweb site get hacked or something...2nd can someone take a look at my code and see what I am doing wrong...can't seem to pinpoint it
Not sure what I am doing wrong but have an issue with a program...i am to input a file name that i have in my project and it is not doing it right... This is what my program should look like for each textfile... Sample Output 1 Enter the file to read in: data1.txt The numbers in the array are: 45.3 57.4 23.6 34.2 234.6 34.9 54.8 934.9 8432.5 9809.3 539.7 43.9 12.0 The numbers in the array are: 12.0 23.6 34.2 34.9 43.9 45.3 54.8 57.4 234.6 539.7 934.9 8432.5 9809.3 The average of the numbers is 1558.2 The median of the numbers is 54.8 Press any key to continue What I am getting is... Enter the file to read in: data1.txt The numbers in the array are: The average of the numbers is 45 The median of the numbers is 0 Press any key to continue... Not sure what I am doing wrong any help would mean alot c++ Syntax (Toggle Plain Text)
|
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| dynamic array help | quickster12 | C++ | 4 | Nov 29th, 2007 11:52 PM |
| problem processing file into a char array | csrocker101 | C++ | 1 | May 8th, 2007 11:50 PM |
| changing size of an array | Eric the Red | Java | 3 | Apr 3rd, 2006 8:19 PM |
| Installing IPB 2.03 | bh4575 | Other Web Development Languages | 0 | Apr 23rd, 2005 2:36 AM |
| Converting 1-dimensional array to 2-dimensional array | Tazz_Mission_13 | Java | 6 | Apr 8th, 2005 11:58 AM |