Click here to Skip to main content
13,861,257 members

C / C++ / MFC

 
AnswerRe: In type conversion of 2 different classes can i convert both ways ? Pin
Victor Nijegorodov25-Mar-18 9:07
memberVictor Nijegorodov25-Mar-18 9:07 
GeneralRe: In type conversion of 2 different classes can i convert both ways ? Pin
Tarun Jha26-Mar-18 0:26
memberTarun Jha26-Mar-18 0:26 
AnswerRe: In type conversion of 2 different classes can i convert both ways ? Pin
CPallini25-Mar-18 11:50
mveCPallini25-Mar-18 11:50 
GeneralRe: In type conversion of 2 different classes can i convert both ways ? Pin
Tarun Jha26-Mar-18 0:25
memberTarun Jha26-Mar-18 0:25 
GeneralRe: In type conversion of 2 different classes can i convert both ways ? Pin
CPallini26-Mar-18 1:18
mveCPallini26-Mar-18 1:18 
QuestionAdding two matrix objects and assigning the result to third object using overloaded operators ? Pin
Tarun Jha24-Mar-18 9:19
memberTarun Jha24-Mar-18 9:19 
AnswerRe: Adding two matrix objects and assigning the result to third object using overloaded operators ? Pin
Victor Nijegorodov24-Mar-18 9:35
memberVictor Nijegorodov24-Mar-18 9:35 
GeneralRe: Adding two matrix objects and assigning the result to third object using overloaded operators ? Pin
Tarun Jha24-Mar-18 11:06
memberTarun Jha24-Mar-18 11:06 
Quote:
So basically i want to add 2 matrix object and assign the result to the third non-initiated matrix object, without changing the values of first 2 original matrix.


this is the result i am getting.

Quote:
Enter matrix elements row by row

m[0][0] = 1
m[0][1] = 2
m[1][0] = 3
m[1][1] = 4
m[2][0] = 5
m[2][1] = 6


1 2
3 4
5 6
m[0][0] = 7
m[0][1] = 8
m[1][0] = 9
m[1][1] = 10
m[2][0] = 11
m[2][1] = 12


7 8
9 10
11 12




8 10 47120720 0 0 0 0 0 0 0 50331651 41272 47127056 0 47120720 0 0 2396 136 0
12 14 47120720 0 1550742898 1148219457 1549890657 1633906508 1700027500
1426092141 1146242387 1229016399 1162100046 1330924371 1429482832 844253517 1398079566 1329877573 1313423693 1095717471
16 18 47120720 0 1162690894 1918981181 1426091637 1347568979 1229344594
1128088908 1934974010 1551069797 1970430292 1398145134 1127232561 1414417743 1397509967 1547322173 1735357008 544039282
47120720 0 47127424 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
47120720 0 47127424 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
47120720 0 47127424 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
47120720 0 47127424 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
47120720 0 47127424 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
47120720 0 47127424 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
47120720 0 47127424 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
47120720 0 47127424 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
47120720 0 47127424 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
47120720 0 47127424 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
47120720 0 47127424 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
47120720 0 47127424 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
47120720 0 47127424 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
47120720 0 47127424 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0


i want a result:
8 10
12 14
16 18
AnswerRe: Adding two matrix objects and assigning the result to third object using overloaded operators ? Pin
Richard MacCutchan24-Mar-18 22:13
protectorRichard MacCutchan24-Mar-18 22:13 
GeneralRe: Adding two matrix objects and assigning the result to third object using overloaded operators ? Pin
Tarun Jha25-Mar-18 6:08
memberTarun Jha25-Mar-18 6:08 
GeneralRe: Adding two matrix objects and assigning the result to third object using overloaded operators ? Pin
Richard MacCutchan25-Mar-18 6:32
protectorRichard MacCutchan25-Mar-18 6:32 
GeneralRe: Adding two matrix objects and assigning the result to third object using overloaded operators ? Pin
Tarun Jha25-Mar-18 7:37
memberTarun Jha25-Mar-18 7:37 
GeneralRe: Adding two matrix objects and assigning the result to third object using overloaded operators ? Pin
Richard MacCutchan25-Mar-18 8:16
protectorRichard MacCutchan25-Mar-18 8:16 
GeneralRe: Adding two matrix objects and assigning the result to third object using overloaded operators ? Pin
Tarun Jha25-Mar-18 9:06
memberTarun Jha25-Mar-18 9:06 
QuestionLinux C++ implementation of ioctl SOLVED Pin
Vaclav_23-Mar-18 9:50
memberVaclav_23-Mar-18 9:50 
AnswerRe: Linux C++ implementation of ioctl Pin
Jochen Arndt25-Mar-18 0:39
mveJochen Arndt25-Mar-18 0:39 
AnswerRe: Linux C++ implementation of ioctl Pin
leon de boer26-Mar-18 17:53
memberleon de boer26-Mar-18 17:53 
GeneralRe: Linux C++ implementation of ioctl Pin
Vaclav_4-Apr-18 6:08
memberVaclav_4-Apr-18 6:08 
QuestionVS2017: Cannot debug Dll's Pin
indrekm23-Mar-18 2:13
memberindrekm23-Mar-18 2:13 
SuggestionRe: VS2017: Cannot debug Dll's Pin
Richard MacCutchan23-Mar-18 2:21
protectorRichard MacCutchan23-Mar-18 2:21 
SuggestionRe: VS2017: Cannot debug Dll's Pin
Jochen Arndt23-Mar-18 2:25
mveJochen Arndt23-Mar-18 2:25 
AnswerRe: VS2017: Cannot debug Dll's Pin
Randor 23-Mar-18 9:09
professional Randor 23-Mar-18 9:09 
QuestionSelect and Pick lines in OpenGL Pin
Gopi Nath22-Mar-18 20:40
memberGopi Nath22-Mar-18 20:40 
AnswerRe: Select and Pick lines in OpenGL Pin
leon de boer22-Mar-18 21:30
memberleon de boer22-Mar-18 21:30 
GeneralRe: Select and Pick lines in OpenGL Pin
Gopi Nath22-Mar-18 22:08
memberGopi Nath22-Mar-18 22:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.190214.1 | Last Updated 15 Feb 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid