- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
I am a computer engineering student who is learning.
- Interests
- Hanging out on social networks sites, blogging, playing games, and sleeping.
- PC Specs
- Quadro FX5600 - OS X Snow Leopard
5 Posted Topics
The results of this program giving me values that should not be the way it is, it must display the list of numbers... [ICODE]#include <iostream> #include <fstream> using namespace std; void ReadList(int Array[], int N) { ifstream data_file; data_file.open("numbers.dat"); N=10; for(int i=0; i<N; i++) { data_file >> Array[i]; cout << … | |
could someone help me, i dont know how to show the results... [CODE]#include <iostream> #include <fstream> using namespace std; int ReadList(int Array[], int N) { int list=0; for(N=0; N<10; N++) { list= Array[N]; } return list; } void Avgs (int Array[], int N, int &Ave, int &AveP, int &AveN) { … | |
I'm having a problem with my program. This program will display the numbers and get the average of them, average of positive and negative numbers, and also display the largest element. I have 3 files. For header, other functions and main function. Prog.h [CODE]#ifndef Prog #define Prog class Prog { … | |
[CODE]#ifndef Prog_h #define Prog_h class Prog { public: int Array[]; int N; void ReadList(int Array[], int N); void Avgs (int Array[], int N, int &Ave, int &aveP, int &AveN); int Large (int Array[], int N); void Display(int Array[], int N, int Ave, int AveP, int AveN, int Max); }; #endif … | |
Re: Narue is right.. must remove [] and make that as [CODE]small(array, sumc, sumr, r, h, w);[/CODE] |
The End.