Help please

hi i really need help writing this program...
write a c++ program that reads an unknown number of integer values and then print count, sum and average of odd values, even values, positive values, negative values!!
Post the code you have so far.
i didnt start writing the code cause i dont actually know where to begin..
If you're not sure where to begin, start writing out the steps in plain language first before worrying about translating to C++ code. Look at the things they want you to calculate - what information will you have to figure out and store when the user inputs an integer?
Can you write and compile a "Hello, world!" program? Can you show a sample input and output of your desired program?
Last edited on
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>
#include <vector>

bool isOdd(int);
bool isNegative(int);
int Average(std::vector<int>, bool, bool); //bool 1: true for odd, false for even
                                                                        //bool 2: true for negative, false for positive

int main(int argc, char *argv[])
{
    // put code here
    return 0;
}
Topic archived. No new replies allowed.