Click here to Skip to main content
15,884,074 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can i check CString format for a especific mask Pin
SNArruda16-Sep-09 12:20
SNArruda16-Sep-09 12:20 
AnswerRe: How can i check CString format for a especific mask Pin
Chris Losinger16-Sep-09 15:22
professionalChris Losinger16-Sep-09 15:22 
AnswerRe: How can i check CString format for a especific mask Pin
«_Superman_»16-Sep-09 20:07
professional«_Superman_»16-Sep-09 20:07 
QuestionRe: How can i check CString format for a especific mask Pin
David Crow17-Sep-09 2:50
David Crow17-Sep-09 2:50 
QuestionGood book for C/C++/VC++2008 Pin
DarkSorrow3816-Sep-09 8:38
DarkSorrow3816-Sep-09 8:38 
AnswerRe: Good book for C/C++/VC++2008 Pin
N a v a n e e t h16-Sep-09 9:12
N a v a n e e t h16-Sep-09 9:12 
AnswerRe: Good book for C/C++/VC++2008 Pin
bob1697216-Sep-09 11:07
bob1697216-Sep-09 11:07 
QuestionCompliling trouble Pin
belleissexy33316-Sep-09 8:27
belleissexy33316-Sep-09 8:27 
#include<stdio.h>
#define abs(x) ((x<0)?(-(x)):(x))
#define epsilon .000000000001
#define size 5
double multiply(a,m,product)
double a[size][size],product [size][size];
int *m;
{
     int test=0;
     int count,i,j,k,l;
     double olda[size][size],diff;
     for(i=0;i<*m;i++)
     for(j=0;j(* m;j++)
          olda[i][j]=a[i][j];
     for(count=1;count<=1000;count++)
     {
          for(i=0;i<*m;i++)
	  for(j=0;j<*m;j++)
	       product[i][j]=0;
	  for(i=0;i<*m;i++)
	  for(j=0;j<*m;j++)
	  for(k=0;k<*m;k++)
	       product[i][j]=product[i][j]+a[i][k]*olda[k][j];
	  for(i=0;i<*m;i++)
	  for(j=0;j<*m;j++)
	  {
	       diff=abs(product[i][j]-olda[i][j]);
	       if(diff>epsilon)
	       {
	            test=1;
		    for(k=0;k<*m;k++)
		    for(l=0;l<*m;l++)
	                 olda[k][l]=product[k][l];
	       }
	       break;
	   if(test<1)
	   {
	        printf("\nThe numberof iterations is:");
		printf("\n");
		printf("\n  %d",count);
		break;
           }
      test=0;
      }
      return(0);
}
main()
{
     static double a[size][size]={{0.1,1.0,0.0,0.0,0.0},
                                  {0.0,0.0,0.3,0.7,0.0},
				  {0.0,0.0,0.0,0.2,0.8},
				  {0.0,0.0,0.1,0.0,0.9},
				  {1.0,0.0,0.0,0.0,0.0}};
     double product[size][size],pi[size],diff;
     int test;
     int m=size;
     int i j;
     multiply(a,&m,product);
     printf("\n");
     printf((" \nThe product is:");
     printf("\n");
     for(i=0;i<m;i<m;i++)
     {
          printf("\n");
	  for(j=0;j<m;j++)
	       printf(" %15.12f", product[i][j]);
     }
printf("\n");
printf("n");
return(0);
}



I tried to compile this and I got errors thank you for your input. I apologise for not posting this correctly yesterday. Unsure | :~
AnswerRe: Compliling trouble Pin
Cedric Moonen16-Sep-09 8:36
Cedric Moonen16-Sep-09 8:36 
AnswerRe: Compliling trouble Pin
CPallini16-Sep-09 11:02
mveCPallini16-Sep-09 11:02 
Question[Message Deleted] Pin
Tobster201816-Sep-09 8:22
Tobster201816-Sep-09 8:22 
AnswerRe: Visual Studio 2008 C++ - error adding messages like WM_mousemove Pin
Joe Woodbury16-Sep-09 18:02
professionalJoe Woodbury16-Sep-09 18:02 
QuestionWindows API WriteFile() Function Pin
egerving16-Sep-09 7:59
egerving16-Sep-09 7:59 
AnswerRe: Windows API WriteFile() Function Pin
Randor 16-Sep-09 9:26
professional Randor 16-Sep-09 9:26 
AnswerRe: Windows API WriteFile() Function Pin
«_Superman_»16-Sep-09 20:12
professional«_Superman_»16-Sep-09 20:12 
QuestionMoving CWnd objects in MFC, driving me nuts !! Pin
Neil Urquhart16-Sep-09 5:13
Neil Urquhart16-Sep-09 5:13 
AnswerRe: Moving CWnd objects in MFC, driving me nuts !! Pin
Stuart Dootson16-Sep-09 5:25
professionalStuart Dootson16-Sep-09 5:25 
AnswerRe: Moving CWnd objects in MFC, driving me nuts !! Pin
Rozis16-Sep-09 12:05
Rozis16-Sep-09 12:05 
Questionhow to get menu text of Visual Studio2005 or sqlserver 2005? Pin
pashamsridhar16-Sep-09 4:51
pashamsridhar16-Sep-09 4:51 
AnswerRe: how to get menu text of Visual Studio2005 or sqlserver 2005? Pin
Stuart Dootson16-Sep-09 5:28
professionalStuart Dootson16-Sep-09 5:28 
GeneralRe: how to get menu text of Visual Studio2005 or sqlserver 2005? Pin
pashamsridhar16-Sep-09 19:54
pashamsridhar16-Sep-09 19:54 
GeneralRe: how to get menu text of Visual Studio2005 or sqlserver 2005? Pin
Stuart Dootson16-Sep-09 21:25
professionalStuart Dootson16-Sep-09 21:25 
GeneralRe: how to get menu text of Visual Studio2005 or sqlserver 2005? Pin
vasu_sri17-Sep-09 20:47
vasu_sri17-Sep-09 20:47 
Questionwho uses local mysql database with visual c++? Pin
includeh1016-Sep-09 3:52
includeh1016-Sep-09 3:52 
AnswerRe: who uses local mysql database with visual c++? Pin
Saurabh.Garg16-Sep-09 4:25
Saurabh.Garg16-Sep-09 4:25 

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.