test05_1.cpp

来自「该包是数据结构的实验软件,来源于合肥工业大学人工智能与数据挖掘实验室,用来实现数」· C++ 代码 · 共 42 行

CPP
42
字号
//{ test05_1 }
#include"iostream.h"
#include"conio.h"
#include"iomanip.h"
typedef int  *point ;
const int m=6;
const int n=10;
typedef  int datatype ;  // {Or Real }
typedef int IntArr[m][n];
IntArr A;
int i,j;

int   Elmn_Order(int i,int j)
  {int  Elmn_Order=____________   //{Blank 1}
   return Elmn_Order;
   }

  point address_of_Int_Elmn(IntArr& A,int i,int j)
   {
   point    address_of_Int_Elmn=&A[0][0]+(_________________) ;//{Blank 2}
	   return address_of_Int_Elmn ;
  }

int  Elmn( IntArr& A,int i,int j)
   { int Elmn=datatype(* address_of_Int_Elmn(A, i,j) );
     return Elmn;
    }

main()
{
    for (i=0;i<m;i++)
       for (j=0;j<n;j++)
	 A[i][j]=i*10+j;
    for (i=0;i<m;i++)
       {cout<<endl;
	  for (j=0;j<n;j++)
	    cout<<setw(6)<<Elmn(A,i,j);
       }
    getch();
 }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?