学习二维动态数组指针做矩阵运算的方法

2020-01-06 13:36:10王旭
  • }  printf("Whether exit the Matrix calculation system?(1 is not exit,0 is exit)n"); //whether exit the system. 
  • scanf("%d", &work);  fflush(stdin); 
  • while (work != 0 && work != 1) //work must is 1 or 0.  { 
  • printf(" Input is error,Please input again!n");  scanf("%d", &work); 
  • fflush(stdin);  } 
  • }  printf("n-------------Thanks For You Using The Matrix Calculation System !--------------n"); 
  • Sleep(2000); //deley some times.  return 0; 
  • 以上就是实现二维动态数组指针做矩阵运算的代码,希望对大家的学习有所帮助。