Реферат: Разработка библиотечных средств
X=V-H;
cout<<"V:n"<<V<<endl;
cout<<"H:n"<<H<<endl;
cout<<"X=V-H:n"<<X<<endl;
cout<<"Press any key...n";
getch();
clrscr();
C=A*V;
cout<<"A:n"<<A<<endl;
cout<<"V:n"<<V<<endl;
cout<<"C=A*V:n"<<C<<endl;
cout<<"Press any key...n";
getch();
clrscr();
//******************************
Matrix<int> D(3,3), E(3,3);
D(0,0)=1; D(0,1)=2; D(0,2)=3;
D(1,0)=2; D(1,1)=5; D(1,2)=6;
D(2,0)=7; D(2,1)=3; D(2,2)=9;
ofstream fout("test.mtr");
if(!fout)
{
cout<<"file not openn";
return 1;
}
D.write(fout);
fout.close();
ifstream fin("test.mtr");
if(!fin)