Professional Documents
Culture Documents
DoThi DSCanh
DoThi DSCanh
h>
#include<stdlib.h>
#include<iostream>
#include<iomanip>
#define max 20
using namespace std;
//Khai bao CTDL dang ma tran
struct DoThiMaTran
{
int n;
float C[max][max];
};
//--------------------
struct Canh
{
int dd,dc;
float ts;
};
struct DoThiCanh
{
int m;
Canh ds[max];
};
void inDoThi_MaTran(DoThiMaTran G)
{
cout<<"\n\n Ma tran trong so la:\n";
for(int i = 1; i<=G.n; i++)
{
for(int j=1;j<=G.n;j++)
cout<<setw(8)<<setprecision(1)<<fixed<<G.C[i][j];
cout<<"\n";
}
}
DSCanh_MaTran(G, GG);
inDoThi_MaTran(GG);
}