[資料구조] 재귀함수
페이지 정보
작성일 23-03-08 18:10
본문
Download : 재귀함수.hwp
자료구조 수업에 나오는 레폿
if( row > 0 && image[row-1][col] == 1)
string str; //int형의 배열에 집어넣기 위해 string형 변수 선언
순서
//아래쪽을 본다
image[row][col] = label;
資料구조 수업에 나오는 레폿
Findcomp(image,row-1,col,label,m,n);
if( row < m-1 && image[row+1][col] == 1)
//왼쪽을 본다
int i,j,m,n;
if( col < n-1 && image[row][col+1] == 1)
Findcomp(image,row+1,col,label,m,n);
int image[100][100];
//오른쪽을 본다.
{
fin>>command;
ifstream fin(`input.txt`);
//위를 본다
#include
Findcomp(image,row,col+1,label,m,n);
Findcomp(image,row,col-1,label,m,n);
{
}
void main()
#include
설명
[資料구조] 재귀함수
void Findcomp(int image[][100],int row,int col, int label,int m, int n)
int command; //몇번의 실행을 할것인가에 대한 명령을 위한 함수
Download : 재귀함수.hwp( 51 )
위한 소
#include
레포트 > 공학,기술계열
using namespace std;
자료구조 재귀 재귀함수
if( col > 0 && image[row][col-1] == 1)
다.


