Skip to content

Conversation

@Qstion05
Copy link
Contributor

No description provided.

Copy link
Member

@LJLee37 LJLee37 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

전체적으로 짜임새 있는 코드입니다. 메서드와 생성자 사용하시고 할당해제 잘 해주세요. 졸려서 피드백에 오타나 그런거 있을 수 있고 라인별 피드백이 짧은데 양해 바랍니다. 일찍 제출하시면 좋겠습니다.

int DATA = 0;
struct List_node *NEXT_NODE;
};

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

생성자, 메서드 쓰세요.

for(int j = 0; j < 4; j++){
CURSOR = CURSOR -> NEXT_NODE; //CURSOR이 현재 가리키는 노드의 다음 노드를 가리킨다.
cout<<j+2<<"번째 노드에 저장된 데이터: "<<CURSOR->DATA<<""<<endl; //CURSOR이 가리키는 노드에 저장된 데이터값을 출력한다.
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

할당해제 하세요.

@LJLee37
Copy link
Member

LJLee37 commented Jan 10, 2021

추가로, 파일명 안겹치게 수정 바랍니다.

Copy link
Contributor

@kimz1121 kimz1121 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그럼 메서드 이전에 함수로 라도 구현하시면 좋을 것 같아요!
메서드 == 멤버 함수 거든요!
일단 함수로 구현하시면 나중에 메서드 구현하시기도 좋으실꺼예요!

함수로 만드셔야 할 내용은 인스턴스( == 복제된 노드 객체)를 생성하는 과정을
main에 사람손으로 일일이 쓰지 않고 함수 호출로 자동화 시키는 과정을 함수로 만드시면 좋을 것 같습니다...!😊😊😊

Copy link
Member

@LJLee37 LJLee37 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

파일이 두 개로 되어있군요. 기존의 파일을 삭제해주시기 바랍니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants