求问大神们这样为什么是输出地址
程序代码:
#include<iostream> using namespace std; class Joker { int arr1[4][4]; int arr2[4][4]; public: void set(); void Sreach(); }; void main() { Joker A; A.set(); A.Sreach(); } void Joker::set() { int arr1[4][4]={{1,4,8,3},{2,5,6,7},{5,7,1,4},{3,6,2,8}}; int arr2[4][4]={{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0}}; } void Joker::Sreach() { int i1,j1,i2,j2; for(int i=0;i<4;i++) for(int j=0;j<4;j++) std::cout<<arr2[i][j];