hello. here i go again...
were learning Arrays this week, and after a lot of trial/error, ive finally created a program that actually runs and compiles.
my issue of the matter now is being able to put the user's 4 numerical inputs in order from low to high.
if anyone can take a look at my program below and kindly suggest what i could possibly be missing. thank you. =)
#include <fstream>
#include <iostream>
using namespace std;
int main()
{
// allows user inputs
const int SIZE = 4;
int a[SIZE];
int i;
for (i = 0; i < SIZE; i++)
{
cout << "Enter score a[" << i << "]: ";
cin >> a[i];
cin.ignore(1000, 10);
}
int size;
for (i = 0; i < SIZE; i++)
cout << a[i] << ' ';
cout << endl;
cin >> size;
cin.ignore(1000, 10);
int* score = new int[size];
delete [] score;
cin.ignore();
cin.get();
return 0;
}