#include
#include
#include
void main()
{
int n, test;
char data[10][100];
char tmp[100];
n = 10;
//input data
for(int i=0; i
}
//sort data using bubble sort
for(int i=0; i
{
strcpy(tmp, data[i]);
strcpy(data[i], data[j]);
strcpy(data[j], tmp);
}
}
}
cout<
for(int i=0; i
{
cout<<"Data "<<(i+1)<<" : "<<
}
getch();
}




Tidak ada komentar:
Posting Komentar