#include <iostream>
using namespace std;
#include <fstream>
#include <string>
int main(){
const int require=15;
const int require2=100000 ;
int count;
int count2;
int swap,temp,i,j;
int data[require];
int data2[require2];
int numofvalues;
ifstream getdata, getdat;
getdata.open("Input.txt");
getdat.open("list.txt");
count=0;
// geting data from 1st fille
while (!getdata.eof())
{
getdata>>data[count];
count ++;
}
//geting data from 2nd file
count2=0;
while (!getdat.eof())
{
getdat>>data2[count2];
count2++;
You should edit your post to add code tags so that your code retains indentation. Just put the following "tags" around your code:
[code]
your code here [/code]
It looks like you should divide your program into functions, one for reading data into an array, one for sorting an array, and one for printing an array.