Please help me!

I'm in class right now and I know I have a problem with my program because it won't build. Please let me know what my errors are. Here is the program:

#include "stdafx.h"
#include <iostream>
#include <fstream>
using namespace std;

//Function prototypes
void selectionSort(int [], int);
void showArray(int [], int);


int _tmain(int argc, _TCHAR* argv[])
{
//Define an array with unsorted values
const int SIZE = 100;
int numbers [SIZE] = {1, 2, 3,4,5,6,7,8,9,10,91,92,93,94,95,96,97,98,99,100,
21,22,23,24,25,26,27,28,29,30,81,82,83,84,85,86,87,88,89,90,31,32,33,34,35,36,37,38,39,40,71,72,73,
74,75,76,77,78,79,80,41,42,43,44,45,46,47,48,49,50,61,62,63,64,65,66,67,68,69,70,11,12,13,14,15,
16,17,18,19,20,51,52,53,54,55,56,57,58,59,60};
int count;

//Display the values.
cout<< "The unsorted values are "<<endl;
showArray(numbers, SIZE);

//Sort the values.
selectionSort(numbers, SIZE);

//Display the values again.
cout<<"The sorted values are "<<endl;
showArray(numbers, SIZE);

ifstream inputFile;

inputFile.open ("HundredNumbers.txt");
1;
2;
3;
4;
5;
6;
7;
8;
9;
10;
91;
92;
93;
94;
95;
96;
97;
98;
99;
100;
21;
22;
23;
24;
25;
26;
27;
28;
29;
30;
81;
82;
83;
84;
85;
86;
87;
88;
89;
90;
31;
32;
33;
34;
35;
36;
37;
38;
39;
40;
71;
72;
73;
74;
75;
76;
77;
78;
79;
80;
41;
42;
43;
44;
45;
46;
47;
48;
49;
50;
61;
62;
63;
64;
65;
66;
67;
68;
69;
70;
11;
12;
13;
14;
15;
16;
17;
18;
19;
20;
51;
52;
53;
54;
55;
56;
57;
58;
59;
60;

system("pause");

return 0;

}

void selectionSort(int array[], int size)
{
int startScan, minIndex, minValue;
for (startScan=0; startScan<(size-1); startScan++)
{
minIndex=startScan;
minValue=array[startScan];
for(int index=startScan +1; index<size; index++)
{
if (array[index]<minValue)
{
minValue=array[index];
minIndex=index;
}
}


}
}

1;
2;
3;
4;
5;
6;
7;
8;
9;
10;
91;
92;
93;
94;
95;
96;
97;
98;
99;
100;
21;
22;
23;
24;
25;
26;
27;
28;
29;
30;
81;
82;
83;
84;
85;
86;
87;
88;
89;
90;
31;
32;
33;
34;
35;
36;
37;
38;
39;
40;
71;
72;
73;
74;
75;
76;
77;
78;
79;
80;
41;
42;
43;
44;
45;
46;
47;
48;
49;
50;
61;
62;
63;
64;
65;
66;
67;
68;
69;
70;
11;
12;
13;
14;
15;
16;
17;
18;
19;
20;
51;
52;
53;
54;
55;
56;
57;
58;
59;
60;

????????????? If you want to put those into your file, do it like this:
1
2
3
4
5
ifstream file;
file.open("file.txt");
file << [number here];
//at the end, close the file, its good prctice
file.close();
Topic archived. No new replies allowed.