Can't figure out my problem!!!

I can't figure out what I am doing wrong. Any ideas? Please help!!!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
	// Min

    int main()
   {
      {
         void double minArray[10] = {1,2,3,4,5,6,7,8,9,10};
      
         int length = 10;
         int i=0;
      
         minArray(minArray [ ], length);
      
         return min;
      }
   
      void double minArray(double length, int i );  
     
      for(i=0; i<length; i++)
      {
         cout << " The minimum is = " << minArray << endl;
      }
   
   
   //Max
      
      void double maxArray(double array [], int length);
      int maxArray = array[0]; 
      
        
      for(int i = 1; i<length; i++)
      {
         if(array[i] > max)
            maxArray = array{i};
         cout << " The maximum is = " << maxArray << endl;
      }
      
      return max;               
      
   
   // Mean
      
      void double meanArray(double array[], int i) 
         
         for (i=0;i<10;i++)
         {
         sum = sum + length;
         }
         cout << " The mean is = " << (sum/10) << endl;
           
      return sum; 
         
               
   		
   // Uses variance to calculate standard deviation
         
      void double stdevArray(double length [], int sum);
      int 
         
         for(i=0;i<10;i++)
         {
            length *= (length-mean);
            sum += length;
         }
         variance = sum/10;
      cout<<"\n Standard deviation is = " << sqrt(variance) << end1;
      
      return stdevArray;
      
   
      
      
      cin.get( )
         return 0;
   }
I'm sorry, you have a LOT of problems in that...I would suggest starting here:

http://www.cplusplus.com/doc/tutorial/program_structure/
thanks for your suggestion but its gonna take a while....any more ideas in specific areas anyone?
void double minArray()

isnt legal, either its a void or a double cant be both
you can't have a function in another function. this is illegal: int main .... void double minArray
alright lets see if I can get the right out this time with your suggestions. I'll post the code again shortly.
Topic archived. No new replies allowed.