Open
Conversation
LJLee37
requested changes
Jan 10, 2021
Member
LJLee37
left a comment
There was a problem hiding this comment.
전체적으로 짜임새 있는 코드입니다. 메서드와 생성자 사용하시고 할당해제 잘 해주세요. 졸려서 피드백에 오타나 그런거 있을 수 있고 라인별 피드백이 짧은데 양해 바랍니다. 일찍 제출하시면 좋겠습니다.
| int DATA = 0; | ||
| struct List_node *NEXT_NODE; | ||
| }; | ||
|
|
| for(int j = 0; j < 4; j++){ | ||
| CURSOR = CURSOR -> NEXT_NODE; //CURSOR이 현재 가리키는 노드의 다음 노드를 가리킨다. | ||
| cout<<j+2<<"번째 노드에 저장된 데이터: "<<CURSOR->DATA<<""<<endl; //CURSOR이 가리키는 노드에 저장된 데이터값을 출력한다. | ||
| } |
Member
|
추가로, 파일명 안겹치게 수정 바랍니다. |
kimz1121
requested changes
Jan 10, 2021
Contributor
kimz1121
left a comment
There was a problem hiding this comment.
그럼 메서드 이전에 함수로 라도 구현하시면 좋을 것 같아요!
메서드 == 멤버 함수 거든요!
일단 함수로 구현하시면 나중에 메서드 구현하시기도 좋으실꺼예요!
함수로 만드셔야 할 내용은 인스턴스( == 복제된 노드 객체)를 생성하는 과정을
main에 사람손으로 일일이 쓰지 않고 함수 호출로 자동화 시키는 과정을 함수로 만드시면 좋을 것 같습니다...!😊😊😊
LJLee37
requested changes
Jan 10, 2021
Member
LJLee37
left a comment
There was a problem hiding this comment.
파일이 두 개로 되어있군요. 기존의 파일을 삭제해주시기 바랍니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.