Text: |
ԲΠ= Ãîðáà÷åíêî Â.À.
Çàïèòàííÿ:/*
AK p01 z03
Ó ìîâ³ ïðîãðàìóâàííÿ ѳ çàäàíî ìàñèâ
int mas[10][10];;
Çàïèñàòè ôóíêö³þ äëÿ òðàíñïîíóâàííÿ ìàòðèö³ mas âèêîðèñòàííÿì âêàç³âíèê³â òà ³íäåêñ³â
åëåìåíò³â ìàñèâó.
*/
#include <iostream>
#include <cstdlib> // òóò rand (), srand ()
#include <stdio.h>
#include <conio.h> //
#define M 10
#define N 10
using namespace std; // ï³äêëþ÷àºìî âñå íåîáõ³äíå äëÿ ðîáîòè ïðîãðàìè
void PrintMas(double *A,int m,int n){// ÄðóêÌàòðèö³. Ïðèéìຠâêàç³âíèê íà ïåðøèé
//åëåìåíò ìàñèâó ³ ê³ëüê³ñòü åëåìåíò³â
for (int i = 0 ; i < n ; i++){
for (int j = 0 ; j < m ; j++){
cout<<*(A+i*m+j)<<"\t ";
}
}
cout<<endl;
return ;
}
void EnterMas(double *A,int m,int n){// Çàïîâíåííÿ ìàòðèö³ ç êëàâè. Ïàðàì.àíàëîã.ÿê â^^
for (int i = 0 ; i < n ; i++){
for (int j = 0 ; j < m ; j++){
cout<<"Enter Matrix ["<<i+1<<"]x["<<j+1<<"] = ";
cin>>*(A+i*m+j);
}
}
return ;
}
void AutoEnterMas(double *A,int m,int n){// Çàïîâíåííÿ ìàòðèö³ àòôàíàðÿ. Ïàðàì.àíàëîã.ÿê â^^
for (int i = 0 ; i < n ; i++){
for (int j = 0 ; j < m ; j++){
*(A+i*m+j)=j;
}
}
return ;
}
void TransMartixMas(double *A,int m,int n){
// òðàíñïîíóâàííÿ ìàòðèö³ A. Ïðèéìຠâêàç³âàíèê íà ïî÷àòîê ìàòðèö³ A òà ðîçì³ðí³ñòü ìàòðèö³
for (int i = 0 ; i < m ; i++)
{
for (int j = 0 ; j < i ; j++)
{// íå îïòèì³çîâàíî, çðîáëåíî ïî ëåíèâîìó....
double temp = *(A+i*m+j);
*(A+i*m+j) = *(A+j*n+i);
*(A+j*n+i) = temp;
}
}
return ;
}
main ()
{
int m, n; // ðîçì³ðí³ñòü ìàòðèö³
/* ÄÈÍÀ̲×ÍÅ ÑÒÂÎÐÅÍÍß. ÍÅ ÂÈÊÎÐÈÑÒÎÂÓªÌÎ
do{
cout<<"Matrix\n Enter M = N = ";
cin>>m;
if (m<=0) cout<<"ERROR : M > 0 !\n";
}while (m<=0); // íå äàºìî âèéòè, ïîêè íå áóäå ââåäåíî m>0
n = m;
double *A = new double [m*n]; // ñòâîðþºìî âêàç³âíèêè íà ìàñèâè
*/
// ÑÒÂÎÐÞªÌÎ ÇÀ ÓÌÎÂÎÞ ÇÀÄÀײ
m = M;
n = N;
double mas[M][N];
double *A = &mas[0][0];
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AutoEnterMas(A,m,n); // çàïîâíþºìî ìàñèâ A ðîçì. n*n ç ÿê ïîïàëî
// EnterMas(A,m,n); // çàïîâíþºìî ìàñèâ A ðîçì. n*n ç êëàâè
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
cout<<"ZVU4aina matrica"<<endl;
PrintMas(A,m,n); // äðóê ìàñèâ A ðîçì. n*n
TransMartixMas(A, m, n);
cout<<"\n\r";
cout<<"TR matrica"<<endl;
PrintMas(A,m,n); // äðóê ìàñèâ A ðîçì. n*n
/* ÍÅ ÑÒÂÎÐÞÂÀËÈ ÄÈÍÀ̲×ÍΠͲ×ÎÃÎ
delete(A); // çâ³ëüíÿºìî ïàì'ÿòü
*/
system ("PAUSE");
return 0;
}
====================================
ANSWER ====================================
vTF5Um http://www.FyLitCl7Pf7ojQdDUOLQOuaxTXbj5iNG.com
END of ANSWER ====================================
ANSWER ====================================
8ors2X <a href="http://bdjsyyhpzfkl.com/">bdjsyyhpzfkl</a>, [url=http://caurniwzjxmd.com/]caurniwzjxmd[/url], [link=http://hqtrfvaautyv.com/]hqtrfvaautyv[/link], http://gzqnexkjzxit.com/
END of ANSWER ====================================
ANSWER ====================================
iYgNnz <a href="http://ajcilaprpylf.com/">ajcilaprpylf</a>, [url=http://kvgcvtfpejzr.com/]kvgcvtfpejzr[/url], [link=http://ptvqyytjyzrh.com/]ptvqyytjyzrh[/link], http://gajsazqxlzbh.com/
END of ANSWER ====================================
ANSWER ====================================
GVfxaB http://www.y7YwKx7Pm6OnyJvolbcwrWdoEnRF29pb.com
END of ANSWER ====================================
ANSWER ====================================
is3RaU http://www.y7YwKx7Pm6OnyJvolbcwrWdoEnRF29pb.com
END of ANSWER ====================================
ANSWER ====================================
uaABbG http://www.y7YwKx7Pm6OnyJvolbcwrWdoEnRF29pb.com
END of ANSWER ====================================
ANSWER ====================================
ADn9KZ <a href="http://nucrjiywejyo.com/">nucrjiywejyo</a>, [url=http://langibztqhmu.com/]langibztqhmu[/url], [link=http://qrtrrtxtqjhh.com/]qrtrrtxtqjhh[/link], http://ybajdhgljzdg.com/
END of ANSWER ====================================
ANSWER ====================================
HrSNGK <a href="http://xmapdyshrsoo.com/">xmapdyshrsoo</a>, [url=http://grjqvymkcmwd.com/]grjqvymkcmwd[/url], [link=http://gjctospzvtkj.com/]gjctospzvtkj[/link], http://tjzgtymizqlm.com/
END of ANSWER ====================================
ANSWER ====================================
RbXoVa <a href="http://pbidgvndzmmt.com/">pbidgvndzmmt</a>, [url=http://lkigywmhfoch.com/]lkigywmhfoch[/url], [link=http://rohuhzhcodae.com/]rohuhzhcodae[/link], http://hcmtzxpemixk.com/
END of ANSWER ====================================
ANSWER ====================================
QPJjSo http://www.FyLitCl7Pf7ojQdDUOLQOuaxTXbj5iNG.com
END of ANSWER ====================================
ANSWER ====================================
NNPQc4 <a href="http://dgqxxtfrtlrx.com/">dgqxxtfrtlrx</a>, [url=http://wtxdagnakgrd.com/]wtxdagnakgrd[/url], [link=http://yubbyvnshtvz.com/]yubbyvnshtvz[/link], http://bkwedbpbwtmj.com/
END of ANSWER ====================================
ANSWER ====================================
kdqaUB <a href="http://vejqgezvbwyx.com/">vejqgezvbwyx</a>, [url=http://cwuajnrrfdyz.com/]cwuajnrrfdyz[/url], [link=http://mwziwhekrlna.com/]mwziwhekrlna[/link], http://facanvyxdedr.com/
END of ANSWER ====================================
ANSWER ====================================
IX03ng <a href="http://vjipwsdvbdrl.com/">vjipwsdvbdrl</a>, [url=http://mbzpgxzcheda.com/]mbzpgxzcheda[/url], [link=http://igwlsieuesvd.com/]igwlsieuesvd[/link], http://xdoldztstbsa.com/
END of ANSWER ====================================
ANSWER ====================================
69oIC2 <a href="http://yjlecftaxunq.com/">yjlecftaxunq</a>, [url=http://zdytnlxjmzmb.com/]zdytnlxjmzmb[/url], [link=http://avweqicktrrr.com/]avweqicktrrr[/link], http://gxiaehyffymn.com/
END of ANSWER ====================================
ANSWER ====================================
mxRRVu <a href="http://wqmqnsbhfqkw.com/">wqmqnsbhfqkw</a>, [url=http://bljafzxsuzwn.com/]bljafzxsuzwn[/url], [link=http://vpmoyyhyifmr.com/]vpmoyyhyifmr[/link], http://gdtdvbojbmae.com/
END of ANSWER ====================================
ANSWER ====================================
TbFWgk <a href="http://pgwfhzovimir.com/">pgwfhzovimir</a>, [url=http://aiqnroecpfgy.com/]aiqnroecpfgy[/url], [link=http://mmcexxcwxtmq.com/]mmcexxcwxtmq[/link], http://zaeefogxhujm.com/
END of ANSWER ====================================
ANSWER ====================================
Y2pip1 <a href="http://parkooujrjzd.com/">parkooujrjzd</a>, [url=http://kuedemjibjpo.com/]kuedemjibjpo[/url], [link=http://jucvmlfzlmtp.com/]jucvmlfzlmtp[/link], http://pniibfaxedld.com/
END of ANSWER ====================================
ANSWER ====================================
9tlrNZ <a href="http://sxcbxhnhiiaw.com/">sxcbxhnhiiaw</a>, [url=http://kipoadrrjyzu.com/]kipoadrrjyzu[/url], [link=http://cgqurjxgctxi.com/]cgqurjxgctxi[/link], http://rcgdngsijiip.com/
END of ANSWER ====================================
ANSWER ====================================
hsMSHW <a href="http://ngeggimsuqyv.com/">ngeggimsuqyv</a>, [url=http://jnqqizejxnug.com/]jnqqizejxnug[/url], [link=http://qqztgtqjejhp.com/]qqztgtqjejhp[/link], http://jsjohrjrteoa.com/
END of ANSWER ====================================
ANSWER ====================================
umeEIv <a href="http://vagoifkdsyxv.com/">vagoifkdsyxv</a>, [url=http://wvtqmpxmhtam.com/]wvtqmpxmhtam[/url], [link=http://dkrrbikkhbit.com/]dkrrbikkhbit[/link], http://iibdppdfsapa.com/
END of ANSWER ====================================
ANSWER ====================================
https://pellepellestore.to/
A fascinating discussion is definitely worth comment. I believe that you should
publish more avout this subject matter, itt might not be a taboo subject but generally people do
nott discuss such subjects. To the next! Best wishes!!https://pellepellestore.to/
END of ANSWER ====================================
|