Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What if two executable/Dynamic libraries use another common Dynamic library at the same time? Pin
shaktikanta4-Sep-14 0:34
shaktikanta4-Sep-14 0:34 
GeneralRe: What if two executable/Dynamic libraries use another common Dynamic library at the same time? Pin
CPallini4-Sep-14 1:59
mveCPallini4-Sep-14 1:59 
AnswerRe: What if two executable/Dynamic libraries use another common Dynamic library at the same time? Pin
Albert Holguin4-Sep-14 3:08
professionalAlbert Holguin4-Sep-14 3:08 
AnswerRe: What if two executable/Dynamic libraries use another common Dynamic library at the same time? Pin
Albert Holguin4-Sep-14 3:05
professionalAlbert Holguin4-Sep-14 3:05 
QuestionVS2005 Build order problem Pin
narasingubhanu3-Sep-14 21:04
narasingubhanu3-Sep-14 21:04 
AnswerRe: VS2005 Build order problem Pin
Freak304-Sep-14 0:26
Freak304-Sep-14 0:26 
AnswerRe: VS2005 Build order problem Pin
Albert Holguin4-Sep-14 3:12
professionalAlbert Holguin4-Sep-14 3:12 
Questiondeterminant of matrix in c N*N dimension return error at //answer[r][s]=input[p][q]; Pin
mybm13-Sep-14 3:17
mybm13-Sep-14 3:17 
float determinant(float **input,int order)
{

int j,p,q,t,i;
float pr;
float d;
float *c;
//c=memory_alloc_2D1(row,column);
float **answer;
answer=memory_alloc_2D1(order,order);
float **b;
b=memory_alloc_2D1(order,order);

for(j=1;j<=order;j++)
   {       
      int r=1,s=1;
      for(p=1;p<=order;p++)
       	 {
         
           for(q=1;q<=order;q++)
           		 {
            		        if(p!=1&&q!=j)
              				{
   				
		answer[r][s]=input[p][q]; // error as segmentation fault
                				s++;
                				if(s>order-1)
                 				{
                   					r++;
                   					s=1;
                  				}   
              				 }
            		 }
        }

     	for(t=1,pr=1;t<=(1+j);t++)
     		pr=(-1)*pr;
     		c[j]=pr*determinant(b,order-1);
     }
     		for(j=1,d=0.0;j<=order;j++)
     		{
      			 d=d+(input[1][j]*c[j]);
     		}

return(d);

}

main.c
C#
float determinantmatrix;
determinantmatrix=determinant(covariance1,waveframesize);

//covariance1 is the input matrix
AnswerRe: determinant of matrix in c N*N dimension return error at //answer[r][s]=input[p][q]; Pin
jeron13-Sep-14 4:39
jeron13-Sep-14 4:39 
GeneralRe: determinant of matrix in c N*N dimension return error at //answer[r][s]=input[p][q]; Pin
mybm13-Sep-14 4:47
mybm13-Sep-14 4:47 
GeneralRe: determinant of matrix in c N*N dimension return error at //answer[r][s]=input[p][q]; Pin
jeron13-Sep-14 4:53
jeron13-Sep-14 4:53 
GeneralRe: determinant of matrix in c N*N dimension return error at //answer[r][s]=input[p][q]; Pin
mybm13-Sep-14 5:08
mybm13-Sep-14 5:08 
GeneralRe: determinant of matrix in c N*N dimension return error at //answer[r][s]=input[p][q]; Pin
jeron13-Sep-14 5:11
jeron13-Sep-14 5:11 
GeneralRe: determinant of matrix in c N*N dimension return error at //answer[r][s]=input[p][q]; Pin
mybm110-Sep-14 19:02
mybm110-Sep-14 19:02 
AnswerRe: determinant of matrix in c N*N dimension return error at //answer[r][s]=input[p][q]; Pin
David Crow3-Sep-14 6:15
David Crow3-Sep-14 6:15 
AnswerRe: determinant of matrix in c N*N dimension return error at //answer[r][s]=input[p][q]; Pin
David Crow3-Sep-14 6:14
David Crow3-Sep-14 6:14 
GeneralRe: determinant of matrix in c N*N dimension return error at //answer[r][s]=input[p][q]; Pin
mybm110-Sep-14 19:14
mybm110-Sep-14 19:14 
Questionmaximum number of samples VC++ can dump in real time plotting Pin
niranjan arya2-Sep-14 21:10
niranjan arya2-Sep-14 21:10 
AnswerRe: maximum number of samples VC++ can dump in real time plotting Pin
Albert Holguin3-Sep-14 3:44
professionalAlbert Holguin3-Sep-14 3:44 
QuestionIs there a way to force a Windows application to always be on top? Pin
charlieg2-Sep-14 15:27
charlieg2-Sep-14 15:27 
AnswerRe: Is there a way to force a Windows application to always be on top? Pin
«_Superman_»2-Sep-14 17:45
professional«_Superman_»2-Sep-14 17:45 
GeneralRe: Is there a way to force a Windows application to always be on top? Pin
charlieg3-Sep-14 4:11
charlieg3-Sep-14 4:11 
AnswerRe: Is there a way to force a Windows application to always be on top? Pin
Joe Woodbury3-Sep-14 15:04
professionalJoe Woodbury3-Sep-14 15:04 
QuestionCMenu with Bitmap icon Pin
Drakesal1-Sep-14 10:16
Drakesal1-Sep-14 10:16 
AnswerRe: CMenu with Bitmap icon Pin
Richard MacCutchan1-Sep-14 21:17
mveRichard MacCutchan1-Sep-14 21:17 

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.