Thread: Taking the mean of an array, and counting the 0 values of an array.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #18
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    "numbers" is a array "numbers[i]" is an int.

    Edit2: "i==size" likely wrong try "i<size"

    Edit: TURN ON Compiler warnings!!!!!

    Tim S.
    Last edited by stahta01; 06-04-2012 at 08:46 AM.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Finding an array of unique values within a 2D array
    By saadashfaq in forum C Programming
    Replies: 6
    Last Post: 11-14-2011, 12:02 AM
  2. Replies: 1
    Last Post: 04-08-2011, 11:22 AM
  3. Int Array - Stop taking values at [zero]
    By bunko in forum C Programming
    Replies: 3
    Last Post: 12-04-2008, 12:54 AM
  4. Counting Numbers in Array, not counting last number!
    By metaljester in forum C++ Programming
    Replies: 11
    Last Post: 10-18-2006, 11:25 AM
  5. sizeof(array) returns differnt values for same array?
    By Diamonds in forum C++ Programming
    Replies: 6
    Last Post: 02-02-2003, 04:27 PM