15,902,777 members
Home / Discussions / C / C++ / MFC

C / C++ / MFC

 Re: Does WaitForSingleObject timeout after 49 days if INFINITE is passed? PrafullaVedante8-Jun-20 0:09 PrafullaVedante 8-Jun-20 0:09
 Re: Does WaitForSingleObject timeout after 49 days if INFINITE is passed? CPallini8-Jun-20 1:21 CPallini 8-Jun-20 1:21
 Re: Does WaitForSingleObject timeout after 49 days if INFINITE is passed? Joe Woodbury8-Jun-20 15:04 Joe Woodbury 8-Jun-20 15:04
 Transpose of a matrix Member 148492464-Jun-20 7:08 Member 14849246 4-Jun-20 7:08
 Re: Transpose of a matrix kalberts4-Jun-20 7:58 kalberts 4-Jun-20 7:58
 Re: Transpose of a matrix CPallini4-Jun-20 20:25 CPallini 4-Jun-20 20:25
 Re: Transpose of a matrix Member 148492464-Jun-20 23:52 Member 14849246 4-Jun-20 23:52
 Re: Transpose of a matrix CPallini5-Jun-20 0:04 CPallini 5-Jun-20 0:04
 Your code is wrong because you are printing the `b` matrix while you're updating it (you are printing 'not yet updated' items). Try C ```#include int main() { int a[3][3],b[3][3],i,j; for(i=0;i<3;i++) for(j=0;j<3;j++) scanf("%d",&a[i][j]); for(i=0;i<3;i++) { for(j=0;j<3;j++) { printf("%d ",a[i][j]); } printf("\n"); } for(i=0;i<3;i++) { for(j=0;j<3;j++) { b[j][i]=a[i][j]; } printf("\n"); } for(i=0;i<3;i++) { for(j=0;j<3;j++) { printf("%d ",b[i][j]); } printf("\n"); } return 0; }```
 Re: Transpose of a matrix jeron15-Jun-20 4:53 jeron1 5-Jun-20 4:53
 How to draw a realtime XY plot in MFC manoharbalu1-Jun-20 22:31 manoharbalu 1-Jun-20 22:31
 Re: How to draw a realtime XY plot in MFC Victor Nijegorodov1-Jun-20 22:40 Victor Nijegorodov 1-Jun-20 22:40
 Re: How to draw a realtime XY plot in MFC Richard MacCutchan2-Jun-20 0:15 Richard MacCutchan 2-Jun-20 0:15
 Re: How to draw a realtime XY plot in MFC Victor Nijegorodov2-Jun-20 0:24 Victor Nijegorodov 2-Jun-20 0:24
 Re: How to draw a realtime XY plot in MFC CPallini5-Jun-20 0:33 CPallini 5-Jun-20 0:33
 Re: How to draw a realtime XY plot in MFC charlieg7-Jun-20 7:29 charlieg 7-Jun-20 7:29
 Random numbers Calin Negru1-Jun-20 21:03 Calin Negru 1-Jun-20 21:03
 Re: Random numbers _Flaviu1-Jun-20 21:26 _Flaviu 1-Jun-20 21:26
 Re: Random numbers Calin Negru2-Jun-20 5:34 Calin Negru 2-Jun-20 5:34
 Re: Random numbers Joe Woodbury2-Jun-20 11:21 Joe Woodbury 2-Jun-20 11:21
 Re: Random numbers Richard MacCutchan1-Jun-20 22:25 Richard MacCutchan 1-Jun-20 22:25
 Re: Random numbers Calin Negru2-Jun-20 4:10 Calin Negru 2-Jun-20 4:10
 Re: Random numbers Richard MacCutchan2-Jun-20 5:22 Richard MacCutchan 2-Jun-20 5:22
 Re: Random numbers Calin Negru2-Jun-20 6:52 Calin Negru 2-Jun-20 6:52
 Re: Random numbers CPallini2-Jun-20 20:16 CPallini 2-Jun-20 20:16
 Re: Random numbers Calin Negru3-Jun-20 20:50 Calin Negru 3-Jun-20 20:50
 Last Visit: 31-Dec-99 18:00     Last Update: 21-May-24 7:40 Refresh ᐊ Prev1...144145146147148149150151152153 Next ᐅ