DFSのスタックの作り方


#include//      
#include
using namespace std;
#define N 9
int main()
{
	stackA;
	bool visit[N];
	memset(visit,0,sizeof(visit));
	bool arr[N][N]={
		{0,0,0,0,0,1,1,0,0},
		{1,0,0,0,0,0,0,1,0},
		{1,0,0,1,0,0,0,0,0},
		{0,0,1,0,0,1,0,0,0},
		{0,0,1,1,0,0,1,0,0},
		{0,0,0,0,1,0,0,0,0},
		{0,0,0,0,0,0,0,0,0},
		{0,1,0,0,0,0,0,0,0},
		{0,0,0,0,0,0,0,0,0}
	};
	for(int i=0;i