Click here to Skip to main content
16,017,303 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Wrong date from CDateTimeCtl Pin
vikas amin13-Oct-05 23:27
vikas amin13-Oct-05 23:27 
QuestionRe: Wrong date from CDateTimeCtl Pin
David Crow13-Oct-05 3:27
David Crow13-Oct-05 3:27 
AnswerRe: Wrong date from CDateTimeCtl Pin
vikas amin13-Oct-05 20:17
vikas amin13-Oct-05 20:17 
QuestionRe: Wrong date from CDateTimeCtl Pin
David Crow14-Oct-05 2:44
David Crow14-Oct-05 2:44 
Questionhow to use Class matrix in VC++ Pin
chen100013-Oct-05 1:27
chen100013-Oct-05 1:27 
AnswerRe: how to use Class matrix in VC++ Pin
ddmcr13-Oct-05 1:31
ddmcr13-Oct-05 1:31 
GeneralRe: how to use Class matrix in VC++ Pin
chen100013-Oct-05 1:40
chen100013-Oct-05 1:40 
GeneralRe: how to use Class matrix in VC++ Pin
ddmcr13-Oct-05 2:13
ddmcr13-Oct-05 2:13 
Ok I'll try to make you very happy Smile | :)

#1. Include the "matrix.h" file in you project

#2. Now for example if you want to add two matrices do following :

int main()<br />
{<br />
        //Construct 3x3 matrices<br />
        CMatrix a(3,3);<br />
	CMatrix b(3,3);<br />
	CMatrix c(3,3);<br />
<br />
	//Initialize elements of a and b matrices<br />
	for(int i=0;i<3;i++)<br />
		for(int j=0;j<3;j++){<br />
			a.SetElement(i,j,i+j);//just example<br />
			b.SetElement(i,j,i-j);//just example<br />
	}<br />
<br />
	//Add a and b matrices<br />
		c = a+b;<br />
<br />
	//Get elements of c matrix<br />
	for(int i=0;i<3;i++){<br />
		for(int j=0;j<3;j++)<br />
	            printf("%.f ",c.GetElement(i,j));<br />
	   printf("\n");<br />
	}<br />
return 0;<br />
}


All other operations you can implement similar to this , just take a good look to the link I posted .



"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill


GeneralRe: how to use Class matrix in VC++ Pin
chen100016-Oct-05 0:43
chen100016-Oct-05 0:43 
QuestionWant to read and write to video memory to process the display of the monitor Pin
dreammaker13-Oct-05 1:01
dreammaker13-Oct-05 1:01 
AnswerRe: Want to read and write to video memory to process the display of the monitor Pin
vikas amin13-Oct-05 2:28
vikas amin13-Oct-05 2:28 
AnswerRe: Want to read and write to video memory to process the display of the monitor Pin
l a u r e n13-Oct-05 17:19
l a u r e n13-Oct-05 17:19 
AnswerRe: Want to read and write to video memory to process the display of the monitor Pin
normanS13-Oct-05 19:42
normanS13-Oct-05 19:42 
AnswerRe: Want to read and write to video memory to process the display of the monitor Pin
normanS13-Oct-05 19:54
normanS13-Oct-05 19:54 
GeneralRe: Want to read and write to video memory to process the display of the monitor Pin
dreammaker13-Oct-05 22:51
dreammaker13-Oct-05 22:51 
Questionwant help for Dialogbar Pin
vikas amin13-Oct-05 0:55
vikas amin13-Oct-05 0:55 
QuestionSelf Calling function Pin
benjnp13-Oct-05 0:53
benjnp13-Oct-05 0:53 
AnswerRe: Self Calling function Pin
Eytukan13-Oct-05 1:29
Eytukan13-Oct-05 1:29 
AnswerRe: Self Calling function Pin
Eytukan13-Oct-05 1:43
Eytukan13-Oct-05 1:43 
AnswerRe: Self Calling function Pin
Fired Fish13-Oct-05 1:46
Fired Fish13-Oct-05 1:46 
AnswerRe: Self Calling function Pin
kakan13-Oct-05 2:03
professionalkakan13-Oct-05 2:03 
QuestionXP versus NT Pin
benjnp13-Oct-05 0:47
benjnp13-Oct-05 0:47 
QuestionIP address Pin
benjnp13-Oct-05 0:36
benjnp13-Oct-05 0:36 
AnswerRe: IP address Pin
ThatsAlok13-Oct-05 1:06
ThatsAlok13-Oct-05 1:06 
AnswerRe: IP address Pin
Anonymous13-Oct-05 4:04
Anonymous13-Oct-05 4:04 

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.