Ok I am new to C++ and I am having a hard time trying to figure out how to Sort the array I have created. I dont know if I am on the wrong track or if I am on the right track. Someone PLEASE help!! I have to sort some integers that are given by the user using a sort method like bubble sort. Please HELP!!!
Thanks for your help in advance. Below is what I have so far.
#include <stdlib.h>
#include <iostream>
using namespace std;
int main()
{
int number1;
cout << "Please enter number1: ";
cin >> number1;
int number2;
cout << "Please enter number2: ";
cin >> number2;
int number3;
cout << "Please enter number3: ";
cin >> number3;
int number4;
cout << "Please enter number4: ";
cin >> number4;
cout << number1 << endl;
cout << number2 << endl;
cout << number3 << endl;
cout << number4 << endl;
system( "PAUSE");
return 0;
}