#include "stdafx.h"
#include <iostream>
using namespace std;
//int _tmain(int argc, _TCHAR* argv[])
int main()
{
const int x = 4;
const int y = 4;
int yhzb[x][y] = {{1,0,0,-1},
{0,1,0,0},
{0,0,1,1},
{0,0,0,1}};
int yhyd[4][1]={1,1,1,1};
int sjzb[4][1];
int i,j;
for (i=0;i<4;i++)
{
sjzb[4][1]=0;
for (j=0;j<4;j++)
{
sjzb[i][j]+=yhzb[i][j]*yhzb[i][1];
}
cout << sjzb[i][1];
cout << endl;
}
system ("pause");
return 0;
}
#include <iostream>
using namespace std;
//int _tmain(int argc, _TCHAR* argv[])
int main()
{
const int x = 4;
const int y = 4;
int yhzb[x][y] = {{1,0,0,-1},
{0,1,0,0},
{0,0,1,1},
{0,0,0,1}};
int yhyd[4][1]={1,1,1,1};
int sjzb[4][1];
int i,j;
for (i=0;i<4;i++)
{
sjzb[4][1]=0;
for (j=0;j<4;j++)
{
sjzb[i][j]+=yhzb[i][j]*yhzb[i][1];
}
cout << sjzb[i][1];
cout << endl;
}
system ("pause");
return 0;
}