I am using a compiler called Quincy 99 and when I try to run my program I get this error.
(gcc.exe: cannot specify -o with -c or -S and multiple compilations)
Here is my program:
#include <iostream.h>
void main()
{
const in MAX = 50;
int count = 0;
int index = 0;
float numbers_array[MAX];
char ch = 'Y';
int max;
int min;
int i = 0
do
{ while(ch == 'Y' || ch == 'y')
{
cout << "Please enter a number: ";
cin >> numbers_array[index];
index++;
count++;
cout << "Do you want to enter another number? (Y/N) ";
cin >> ch;
}
min = number_array[0];
max = number_array[0];
while (i < MAX)
{
if (number_array[i] < min)
{
min = number_array[i];
}
else (number_array[i] > max)
{
max = number_array[i];
}
i++
}
cout << "You entered a total of" << count;
cout << "numbers." <<endl;
cout << "The largest number you entered was " << max << endl;
cout << "The smallest number you entered was " << min << endl;
cout << "Do you want to re run this program? (Y/N);
cin >> ch;
}
while (ch == 'Y' || ch == 'Y')
return 0;
}
what am I doing wrong?



LinkBack URL
About LinkBacks


