Lab MIPS
Lab MIPS
Lab MIPS
#include <time.h>
using namespace std;
#define size 1e5
double data[15][(int)size];
void output(float A[], int n) {
for (int i = 0; i < n; i++)
cout << A[i] <<" ";
}
void autocre(float A[], int n) {
for (int i = 0; i < n; i++) {
A[i] = rand()+ (float)rand() / RAND_MAX;
}
}
void cre(float A[], int n) {
for (int i = 0; i < n; i++) {
cin >> A[i];
}
}
void limitedcre(float A[], int n) {
int main()
{
int n;
cin >> n;
float* A = new float[n];
int luachon;
while (1)
{
cout << endl;
cout << "---------- MENU-----------" << endl;
cout << " 1. Creat ArrayX." << endl;
cout << " 2. Creat randArrayX." << endl;
cout << " 3.RandArrayX[39000:99000]" << endl;
cout << " 4. Output mang." << endl;
cout << " 5.Sapxep tang." << endl;
cout << " 6.Tinh thoi gian sort..." << endl;